problem rotating apache logs

Jerry gesbbb at yahoo.com
Tue Mar 10 11:21:57 PDT 2009


On Tue, 10 Mar 2009 15:38:37 +0000
Robin Becker <robin at reportlab.com> wrote:

>I'm trying to get newsyslog to rotate my apache2 logs (this in 7.0 &
>7.1 release).
>
>I added this to the end of newsyslog.conf
>
>
>/var/log/httpd-*.log        644  9     8    @T01
>BG /var/run/httpd.pid 30
>
>
>this is what is currently working for me in 6.0 & 6.1.  Signal 30 is
>supposed to be USR1 which is intended to cause a graceful restart.
>
>However, I find that although I do get a rotated log file the new logs
>always seem to be empty.
>
>The logs seem to start growing only after I restart the apache server.
>
>What am I doing wrong?

Have you checked out (depending on your Apache version)

	http://httpd.apache.docs/1.3/programs/rotatelogs.html
	http://httpd.apache.docs/2.0/programs/rotatelogs.html

-- 
Jerry
gesbbb at yahoo.com

Established technology tends to persist in the face of new technology.

	G. Blaauw, one of the designers of System 360
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090310/17e6ce6e/signature.pgp


More information about the freebsd-questions mailing list