Date: Wed, 13 Oct 1999 13:37:57 +0200 From: Udo Schweigert <ust@cert.siemens.de> To: Michael Lucas <mwlucas@blackhelicopters.org> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Apache 1.3.6 logfile rotation - newsyslog Message-ID: <19991013133757.A17871@alaska.cert.siemens.de> In-Reply-To: <199910131114.HAA48292@blackhelicopters.org> References: <199910131114.HAA48292@blackhelicopters.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Oct 13, 1999 at 07:14:09AM -0400, Michael Lucas wrote: > Hello, > > Stupid Apache/FreeBSD question time. > > I have the apache+php3-1.3.6+3.0.12 package installed, and want to > rotate the logs on a daily basis. My /etc/newsyslog.conf includes: > > /var/log/apache_access_log 644 7 * 24 Z > /var/log/apache_error_log 644 7 * 24 Z > Hello, newsyslog has to know which PID has to be HUPed, so if you have the pid of your apache in /var/run/apache.pid just add this file-path to your lines, like: /var/log/apache_access_log 644 7 * 24 Z /var/run/apache.pid > Apache logs just fine, but once the log rotates, it stops logging. > The new log only contains the "logfile turned over" statement. > > If I hup apache, it starts logging just fine. > > This setup worked fine under Apache 1.2x without PHP. > > Any thoughts on where to check? > See also newsyslog(8) ;-) > Thanks, > ==ml Regards ------------------------------------------------------------------------------- Udo Schweigert || Voice : +49 89 636 42170 Siemens AG, Siemens CERT || Fax : +49 89 636 41166 ZT IK 3 || email : Udo.Schweigert@mchp.siemens.de D-81730 Muenchen / Germany || : ust@cert.siemens.de PGP fingerprint || 2A 53 F6 A6 30 59 64 02 6B C4 E0 73 B2 C9 6C E7 ------------------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991013133757.A17871>