Date: 31 May 2001 22:54:05 EST From: "Mark Sergeant" <msergeant@snsonline.net> To: Alexander Leidinger <Alexander@Leidinger.net>, henk@home.cg.nu Cc: jan@digitaldaemon.com, freebsd-isp@FreeBSD.ORG Subject: Re: Log file rotation with Apache. Message-ID: <200106010354.f513s6V02099@xyzzy.intranet.snsonline.net> In-Reply-To: <200105311147.f4VBlkO03592@Magelan.Leidinger.net> References: <200105311147.f4VBlkO03592@Magelan.Leidinger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106010354.f513s6V02099>
