Date: Wed, 19 Oct 2005 22:00:08 +1300 From: Jonathan Chen <jonc@chen.org.nz> To: Olivier Nicole <on@cs.ait.ac.th> Cc: freebsd-questions@freebsd.org Subject: Re: Apache log rotation Message-ID: <20051019090008.GC86787@osiris.chen.org.nz> In-Reply-To: <200510190854.j9J8sFum044816@banyan.cs.ait.ac.th> References: <200510190854.j9J8sFum044816@banyan.cs.ait.ac.th>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Oct 19, 2005 at 03:54:15PM +0700, Olivier Nicole wrote: [...] > Is there a clean way to rotate these logs a la newsyslog? > > I know I can use newsyslog to rotate them, but then how to notify > Apache to use the new log files? I don't expect a signal HUP sent to > httpd would be enough. It is. All you need to make sure that only the last line has the HUP to the httpd, as newsyslog works from top to bottom. eg: /var/log/apache/httpd-access.log 644 12 * $M1D0 BN /var/log/apache/httpd-error.log 644 12 * $M1D0 B /var/run/httpd.pid Cheers. -- Jonathan Chen <jonc@chen.org.nz> ---------------------------------------------------------------------- "Lots of folks confuse bad management with destiny" - Kin Hubbard
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051019090008.GC86787>