[Bug 393792] Re: lighttpd reload executes restart (bad on logrotate!)
Daniel Hahler
launchpad at thequod.de
Thu Jul 2 23:39:37 BST 2009
I could not find any documentation, if "reload" should start a not already running service.
("9.3.2 Writing the scripts" in the Debian Policy Manual (http://www.debian.org/doc/debian-policy/ch-opersys.html) talks about this)
However, Apache does the same (via "apache2ctl graceful"):
$ sudo apache2ctl graceful
httpd not running, trying to start
But, apache2's logrotate script checks if it is running:
postrotate
if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then
/etc/init.d/apache2 reload > /dev/null
fi
endscript
I think the same should get done for lighttpd's logrotate script, too.
I'm adding an apache2 task.
** Also affects: apache2 (Ubuntu)
Importance: Undecided
Status: New
--
lighttpd reload executes restart (bad on logrotate!)
https://bugs.launchpad.net/bugs/393792
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to apache2 in ubuntu.
More information about the Ubuntu-server-bugs
mailing list