[ale] httpd error_log entry

Mike Millson mgm at atsga.com
Fri Jan 25 18:18:50 EST 2002


I have the same setup on my box.

Anyone know why Apache restarts during postrotate? Why would it have to do
this every day if it's only rotating the files once a week?

Mike

-----Original Message-----
From: Bob Slaughter [mailto:rslau at mindspring.com]
To: ale at ale.org
Sent: Friday, January 25, 2002 3:57 PM
To: mgm at atsga.com
Subject: Re: [ale] httpd error_log entry


> It's taken me a few days to get back to this.
>
> Yes, it's logrotate. I looked in my /etc/logrotate.conf file, and it is
> rotating my files weekly. My question is, if my files are being rotated
> weekly, why does my my Apache server have to be restarted each night? Why
> wouldn't this be a weekly occurrence?

Lessee, logrotate is run daily on my machine. About halfway through /etc/
logrotate.conf, there is this line:

# RPM packages drop log rotation information into this directory
include /etc/logrotate.d

and in /etc/logrotate.d, there is the file 'apache', which looks like:
/var/log/httpd/*log {
    missingok
    nocompress
    postrotate
        /usr/bin/killall -USR1 httpd
    endscript
}

Now, the log files are set to default to rotating weekly in logrotate.conf,
and
there is no overide here. The only thing I can think of, is that the
'postrotate' section for apache is run every night, even if no log rotation
occurs.

Anybody else?


--
Bob Slaughter, rslau at mindspring.com     http://www.mindspring.net/~rslau/
North Georgia Modurail: http://www.mindspring.net/~rslau/ngm/
In which language does the word 'taxi' mean "I cannot drive"?
e'osai ko sarji la lojban fo le pilno -- www.lojban.com





---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list