httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Coby" <>
Subject Re: failure notice
Date Fri, 23 Aug 2002 13:43:11 GMT
> Do you need to stop the apache process to rotate logs?  Some documentation
> I read indicated you had to and some didn't.  I did find this script on
> Sun site.  It just appears to copy and compress the logs and then performs
> a touch to 0 it out.  Any thoughts or experience with this?

You'll need to do a killall -SIGHUP after you've rotated the logs, else
apache won't be able to write to the new log.

I use logrotate, much simpler to debug :).

-- /etc/logrotate.d/httpd --
# rotate apache logs
/usr/local/apache/logs/*_log /usr/local/apache/logs/*_log {
        rotate 5
        create 644

                /usr/bin/killall -HUP /usr/local/apache/bin/httpd
-- end --


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message