From owner-freebsd-questions@FreeBSD.ORG Wed Oct 19 09:00:09 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C2BD316A41F for ; Wed, 19 Oct 2005 09:00:09 +0000 (GMT) (envelope-from jonc@chen.org.nz) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5002B43D5D for ; Wed, 19 Oct 2005 09:00:09 +0000 (GMT) (envelope-from jonc@chen.org.nz) Received: by chen.org.nz (Postfix, from userid 1000) id 95AFF5641C; Wed, 19 Oct 2005 22:00:08 +1300 (NZDT) Date: Wed, 19 Oct 2005 22:00:08 +1300 From: Jonathan Chen To: Olivier Nicole Message-ID: <20051019090008.GC86787@osiris.chen.org.nz> References: <200510190854.j9J8sFum044816@banyan.cs.ait.ac.th> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200510190854.j9J8sFum044816@banyan.cs.ait.ac.th> User-Agent: Mutt/1.4.2.1i Cc: freebsd-questions@freebsd.org Subject: Re: Apache log rotation X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Oct 2005 09:00:09 -0000 On Wed, Oct 19, 2005 at 03:54:15PM +0700, Olivier Nicole wrote: [...] > Is there a clean way to rotate these logs a la newsyslog? > > I know I can use newsyslog to rotate them, but then how to notify > Apache to use the new log files? I don't expect a signal HUP sent to > httpd would be enough. It is. All you need to make sure that only the last line has the HUP to the httpd, as newsyslog works from top to bottom. eg: /var/log/apache/httpd-access.log 644 12 * $M1D0 BN /var/log/apache/httpd-error.log 644 12 * $M1D0 B /var/run/httpd.pid Cheers. -- Jonathan Chen ---------------------------------------------------------------------- "Lots of folks confuse bad management with destiny" - Kin Hubbard