Date: Sat, 24 Mar 2007 23:16:27 +0100 From: Roger Olofsson <raggen@passagen.se> To: Jeffrey Goldberg <jeffrey@goldmark.org> Cc: questions@freebsd.org Subject: Re: log rotation recommendations Message-ID: <4605A33B.20309@passagen.se> In-Reply-To: <E8BC12B2-F5CC-4CEB-A5DD-0C8D8FBD4FA7@goldmark.org> References: <E8BC12B2-F5CC-4CEB-A5DD-0C8D8FBD4FA7@goldmark.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello Jeffrey, I am not familiar with logrotate but my newsyslog.conf rotates whatever I want just fine. As an example I have this for a small almost unused apache: /var/log/httpd-access.log 644 7 1000 24 B /var/run/httpd.pid 30 /var/log/httpd-error.log 644 7 1000 24 B /var/run/httpd.pid 30 You might want to adjust size settings etc and this can be found in the man page for newsyslog.conf. Good luck! Jeffrey Goldberg skrev: > Hello, > > Having recently moved from Linux (SuSE) to FreeBSD (6.2-p3) I'm > wondering what the recommended way of rotating logs (principally postfix > and apache). I see that logrotate, with which I'm familiar, is in > ports. I also see that there is a file /etc/newsyslog.conf, but it > looks like newsyslog(8) only knows about HUPping syslogd. > > If there is no conventional "BSD way of doing this", I'll just install > logrotate and go with what I know, but I thought I would check here first. > > Thanks, > > -j > > > --Jeffrey Goldberg http://www.goldmark.org/jeff/ > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > > --No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.446 / Virus Database: 268.18.17/731 - Release Date: > 2007-03-23 15:27 > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4605A33B.20309>