From owner-freebsd-isp Thu May 31 20:56:29 2001 Delivered-To: freebsd-isp@freebsd.org Received: from xyzzy.intranet.snsonline.net (dhcp.looksmart.com.au [202.53.47.178]) by hub.freebsd.org (Postfix) with ESMTP id 71CA137B422 for ; Thu, 31 May 2001 20:56:24 -0700 (PDT) (envelope-from msergeant@snsonline.net) Received: from xyzzy.intranet.snsonline.net (localhost [127.0.0.1]) by xyzzy.intranet.snsonline.net (8.11.3/8.11.3) with SMTP id f513s6V02099; Fri, 1 Jun 2001 13:54:22 +1000 (EST) (envelope-from msergeant@snsonline.net) Message-Id: <200106010354.f513s6V02099@xyzzy.intranet.snsonline.net> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "Mark Sergeant" To: Alexander Leidinger , henk@home.cg.nu Cc: jan@digitaldaemon.com, freebsd-isp@FreeBSD.ORG Subject: Re: Log file rotation with Apache. X-Mailer: Pronto v2.2.5 On freebsd/mysql Date: 31 May 2001 22:54:05 EST Reply-To: "Mark Sergeant" In-Reply-To: <200105311147.f4VBlkO03592@Magelan.Leidinger.net> References: <200105311147.f4VBlkO03592@Magelan.Leidinger.net> 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 I decided another solution was needed and wrote a simple shell script that would rotate the apache logs for the 40+ domains my machine hosts. If you are after an example let me know. Cheers, Mark On Thu, 31 May 2001 13:47:45 +0200 (CEST), Alexander Leidinger said: :: 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. :: -- Mark Sergeant Unix Systems Administrator Fortune follows... we will invent new lullabies, new songs, new acts of love, we will cry over things we used to laugh & our new wisdom will bring tears to eyes of gentile creatures from other planets who were afraid of us till then & in the end a summer with wild winds & new friends will be. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message