[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: logrotate on RaQ3? (was: Re: [cobalt-users] Anybody running WebAlizer 2.0 on a RaQ3?)
- Subject: Re: logrotate on RaQ3? (was: Re: [cobalt-users] Anybody running WebAlizer 2.0 on a RaQ3?)
- From: "Steven Werby" <steven-lists@xxxxxxxxxxxx>
- Date: Fri Jul 28 13:33:48 2000
Florian Effenberger <florian.effenberger@xxxxxxxxxxxxx> wrote:
> Hi Steven,
>
> thanks for your mail.
You're welcome. Hope it helps.
> Does the logrotate on a RaQ3 (all patches
> installed) gzip the log files automatically?
No. You have to add the "compress" line to the logrotation script for the
site in question. The logrotation script for a site can be found in
/etc/logrotate.d/siteXY. The logrotation script below (on a RaQ2) gzips the
current log on the 1st of the month, creates a new blank log and names the
just-gzipped log combined-access.1.gz. The next month it gets renamed .2.gz
and then new gzipped log gets named .1.gz, etc. You should be able to learn
from the logrotate script below to put together one to meet your needs.
/var/log/httpd/combined-access {
compress
rotate 12
monthly
postrotate
killall -USR1 httpd
endscript
}
Steven Werby {steven-lists@xxxxxxxxxxxx}