Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Mar 2009 14:21:42 -0400
From:      Jerry <gesbbb@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: problem rotating apache logs
Message-ID:  <20090310142142.7866db77@scorpio>
In-Reply-To: <49B6897D.3060508@chamonix.reportlab.co.uk>
References:  <49B6897D.3060508@chamonix.reportlab.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/.8XTB9DxuKq/HV6_ZMKOEsX
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Tue, 10 Mar 2009 15:38:37 +0000
Robin Becker <robin@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

--=20
Jerry
gesbbb@yahoo.com

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

	G. Blaauw, one of the designers of System 360

--Sig_/.8XTB9DxuKq/HV6_ZMKOEsX
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (FreeBSD)

iEYEARECAAYFAkm2r78ACgkQBvaKIJWWCO1KqwCgjgdl5b3HmJrfco33aWVduf/i
ATQAnRHISpXVz0AwGY4W70882AoRP81B
=NMaX
-----END PGP SIGNATURE-----

--Sig_/.8XTB9DxuKq/HV6_ZMKOEsX--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090310142142.7866db77>