[ILUG] Problem with removing apache logs
Jerry Walsh
jerry at aardvark.ie
Mon Nov 12 11:25:09 GMT 2001
At 11:17 12/11/01 +0000, you wrote:
>According to Jerry Walsh:
> > No, rotatelogs doesn't HUP apache at all... apache pipes the log data
> > to rotatelogs which in turn just creates a new logfile when the time
> > comes and it sends the log data into that one. Rotatelogs doesn't touch
> > the apache processes at all...
> >
> > Jerry.
>
>Are you sure about that?
>
>Waider (eris.euroconex.prv) $ > cat /etc/logrotate.d/apache
>/var/log/httpd/access_log /var/log/httpd/agent_log
>/var/log/httpd/error_log /var/log/httpd/referer_log {
> missingok
> sharedscripts
> postrotate
> /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
> endscript
>}
Eh, I said rotatelogs, not logrotate.d.
More information about the ILUG
mailing list