From owner-freebsd-questions Wed Oct 13 4:32:11 1999 Delivered-To: freebsd-questions@freebsd.org Received: from pasha.anand.org (pasha.anand.org [199.103.176.41]) by hub.freebsd.org (Postfix) with SMTP id D953C14BEA for ; Wed, 13 Oct 1999 04:31:48 -0700 (PDT) (envelope-from arb@anand.org) Received: (qmail 1480 invoked by uid 1001); 13 Oct 1999 11:31:42 -0000 Date: Wed, 13 Oct 1999 14:31:42 +0300 From: Anand Buddhdev To: Michael Lucas Cc: freebsd-questions@freebsd.org Subject: Re: Apache 1.3.6 logfile rotation - newsyslog Message-ID: <19991013143142.B1399@africaonline.co.ke> 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> Organisation: Africa Online Ltd, P O Box 63017, Nairobi, Kenya X-Phone: +254-2-243775 X-WWW-Homepage: http://www.anand.org X-Duties: SysAdmin, Hostmaster, Postmaster, Programmer, Support 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: > 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 > > 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. I don't know about Apache 1.2, but the current apache will continue to log to the old log file, even after rotation. It will only close it after its gets a HUP signal. You need to add an extra field to your newsyslog config to tell it to send a HUP to the apache server after a rotation. See the man page. -- See complete headers for more info To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message