On Wed, Oct 17, 2007 at 12:50:16PM -0000, Ondřej Surý wrote:
> Same for libapache2-mod-php5 itself (#152410).
No, libapache2-mod-php5 already does that. Snippet from its postinst:
reload_apache()
{
if apache2ctl configtest 2>/dev/null; then
invoke-rc.d apache2 force-reload || true
else
echo "Your apache2 configuration is broken, so we're not restarting it for you."
fi
}
if [ -n "$2" ]; then
# we're upgrading. test if we're enabled, and if so, restart to reload the module.
if [ -e /etc/apache2/mods-enabled/php5.load ]; then
reload_apache
fi
exit 0
fi
On Wed, Oct 17, 2007 at 12:50:16PM -0000, Ondřej Surý wrote:
> Same for libapache2-mod-php5 itself (#152410).
No, libapache2-mod-php5 already does that. Snippet from its postinst:
reload_apache()
{
if apache2ctl configtest 2>/dev/null; then
invoke-rc.d apache2 force-reload || true
else
echo "Your apache2 configuration is broken, so we're not restarting it for you."
fi
}
if [ -n "$2" ]; then mods-enabled/ php5.load ]; then
# we're upgrading. test if we're enabled, and if so, restart to reload the module.
if [ -e /etc/apache2/
reload_apache
fi
exit 0
fi
-- www.ubuntu. com/
Soren Hansen
Ubuntu Server Team
http://