Date: Sat, 24 Mar 2007 18:47:39 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Jeffrey Goldberg <jeffrey@goldmark.org> Cc: questions@freebsd.org Subject: Re: log rotation recommendations Message-ID: <4605724B.6000000@infracaninophile.co.uk> 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
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1E7BD8D2D25F03E83843B15F Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Jeffrey Goldberg wrote: > Having recently moved from Linux (SuSE) to FreeBSD (6.2-p3) I'm > wondering what the recommended way of rotating logs (principally postfi= x > 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. Not so. The optional 7th field in /etc/newsyslog.conf can contain a file name to read a PID out of: that PID will be signalled when the log is rotated. The optional 8th column can contain the signal number to use -- by default SIGHUP is sent. The newsyslog.conf(5) man page explains all this in great detail. Certainly for apache, you might alternatively consider the use of rotatelogs(8) (comes with apache) or cronolog(8) (in ports as sysutils/cronolog). Or, indeed, logrotate if that's what you prefer. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig1E7BD8D2D25F03E83843B15F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGBXJQ8Mjk52CukIwRCA4gAJ9tD8chInAYj3tw/y2Y9KUfn60KbgCfSV6Y AUYlI9xoS0G8wHnHhA/Rxqo= =C9bd -----END PGP SIGNATURE----- --------------enig1E7BD8D2D25F03E83843B15F--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4605724B.6000000>