[Bug 687275] [NEW] Fix "graceful" action in init script when mod_chroot is enabled
Daniel Hahler
launchpad at thequod.de
Wed Dec 8 11:12:05 GMT 2010
Public bug reported:
Binary package hint: apache2
The init script uses "$APACHE2CTL graceful $2" to gracefully
restart/reload Apache.
This will fail however when using mod_chroot (where Apache itself gets
chrooted), and therefore the init script should fallback to "restart" in
this case for "reload", "force-reload" and "graceful".
This might get done by adding the following code to "reload":
if [ -f /etc/apache2/mods-enabled/mod_chroot.load ]; then
# mod_chroot is loaded. "graceful" won't work.
apache_restart
else
# normal reload code
fi
The current block from "restart" would get abstracted into a
"apache_restart" function, which would get called in case mod_chroot is
loaded/enabled and for when "restart" itself is requested.
I have code like this in the "dpkg-old" init script, but do not remember
if I had written it myself.
This should get forwarded/applied to the Debian package, too - I'd just
like to get some feedback before forwarding it.
** Affects: apache2 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to apache2 in ubuntu.
https://bugs.launchpad.net/bugs/687275
Title:
Fix "graceful" action in init script when mod_chroot is enabled
More information about the Ubuntu-server-bugs
mailing list