From owner-freebsd-isp Thu May 31 6:58:25 2001 Delivered-To: freebsd-isp@freebsd.org Received: from mout0.freenet.de (mout0.freenet.de [194.97.50.131]) by hub.freebsd.org (Postfix) with ESMTP id 7314837B423 for ; Thu, 31 May 2001 06:58:22 -0700 (PDT) (envelope-from Alexander@leidinger.net) Received: from [194.97.50.138] (helo=mx0.freenet.de) by mout0.freenet.de with esmtp (Exim 3.22 #1) id 155Sxx-0005lZ-00; Thu, 31 May 2001 15:58:21 +0200 Received: from b8442.pppool.de ([213.7.132.66] helo=Magelan.Leidinger.net) by mx0.freenet.de with esmtp (Exim 3.22 #2) id 155Sxx-0004rq-00; Thu, 31 May 2001 15:58:21 +0200 Received: from Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.11.3/8.11.3) with ESMTP id f4VBlkO03592; Thu, 31 May 2001 13:47:47 +0200 (CEST) (envelope-from netchild@Leidinger.net) Message-Id: <200105311147.f4VBlkO03592@Magelan.Leidinger.net> Date: Thu, 31 May 2001 13:47:45 +0200 (CEST) From: Alexander Leidinger Subject: Re: Log file rotation with Apache. To: henk@home.cg.nu Cc: jan@digitaldaemon.com, freebsd-isp@FreeBSD.ORG In-Reply-To: MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 30 Mai, Henk Wevers wrote: [my previous message was about "rotatelogs" which comes with apache] > The correct way could be > In the /etc/newsyslog.conf > > logfilename owner.group mode count size time [ZB] [/pid_file] > [sig_num] > /var/log/httpd-access.log 664 14 * 168 Z > /var/run/httpd.pid 1 Why send a signal to apache (and interrupt it), if you are able to do it without it (SIGHUP closes currently open connections)? There are even superior replacements for rotatelogs, if the available featureset isn't enough for you (it wasn't for me, so I hacked in something (e.g. automatically [gb]zipping the rotated file and a human readable date format) some time ago). Bye, Alexander. -- I believe the technical term is "Oops!" http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message