Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134291 - apache2 logrotate script enhancement - graceful restart
Summary: apache2 logrotate script enhancement - graceful restart
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-25 00:59 UTC by Tomasz Orzechowski
Modified: 2006-05-25 09:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Orzechowski 2006-05-25 00:59:30 UTC
the /etc/logrotate.d/apache2 script should be modified to do a kill -USR1 on apache, not execute /etc/init.d/apache2 reload

sending the signal to apache tells it to reload its config, close and reopen all open files, but without interrupting requests already in progress.

the change would be along the lines of:

9c9
<   kill -USR1 `cat /var/run/apache2.pid`
---
>   /etc/init.d/apache2 reload > /dev/null 2>&1 || true
Comment 1 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2006-05-25 09:49:18 UTC
kill -USR1 and /etc/init.d/apache2 reload are the same thing. reload does a graceful restart of apache, which is what the USR1 signal triggers.

http://httpd.apache.org/docs/2.0/stopping.html#graceful