[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-isp
Subject:    Re: Log file rotation with Apache.
From:       "Mark Sergeant" <msergeant () snsonline ! net>
Date:       2001-05-31 22:54:05
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic