From owner-freebsd-questions Wed Oct 13 4:38: 3 1999 Delivered-To: freebsd-questions@freebsd.org Received: from david.siemens.de (david.siemens.de [192.35.17.14]) by hub.freebsd.org (Postfix) with ESMTP id 5616714BEA for ; Wed, 13 Oct 1999 04:37:59 -0700 (PDT) (envelope-from ust@cert.siemens.de) X-Envelope-Sender-Is: ust@cert.siemens.de (at relayer david.siemens.de) Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by david.siemens.de (8.9.3/8.9.3) with ESMTP id NAA17941; Wed, 13 Oct 1999 13:37:57 +0200 (MET DST) Received: from mars.cert.siemens.de (ust.mchp.siemens.de [139.23.201.17]) by mail1.siemens.de (8.9.3/8.9.3) with ESMTP id NAA05605; Wed, 13 Oct 1999 13:37:57 +0200 (MET DST) Received: from alaska.cert.siemens.de (alaska.cert.siemens.de [139.23.202.134]) by mars.cert.siemens.de (8.9.3/8.9.3/Siemens CERT [ $Revision: 1.9 ]) with ESMTP id NAA28483; Wed, 13 Oct 1999 13:37:57 +0200 (CEST) Received: (from ust@localhost) by alaska.cert.siemens.de (8.9.3/8.9.3/alaska [ $Revision: 1.2 ]) id LAA18122; Wed, 13 Oct 1999 11:37:57 GMT (envelope-from ust) Date: Wed, 13 Oct 1999 13:37:57 +0200 From: Udo Schweigert To: Michael Lucas Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Apache 1.3.6 logfile rotation - newsyslog Message-ID: <19991013133757.A17871@alaska.cert.siemens.de> References: <199910131114.HAA48292@blackhelicopters.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <199910131114.HAA48292@blackhelicopters.org> X-Operating-System: FreeBSD 3.3-STABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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