restart with stop/start instead of restart (...) apache AND apache2 (test)

This commit is contained in:
Benjamin Sonntag 2007-09-27 08:29:11 +00:00
parent df3b3b0769
commit 251cb7db6d
1 changed files with 5 additions and 2 deletions

View File

@ -286,6 +286,9 @@ if [ "$HAS_ROOT" != "1" ]; then
fi fi
# We should restart apaches after all configuration stuff ... # We should restart apaches after all configuration stuff ...
for service in apache apache-ssl ; do for service in apache apache-ssl apache2 ; do
test -x /etc/init.d/$service && invoke-rc.d $service restart || true test -x /etc/init.d/$service && invoke-rc.d $service stop || true
done
for service in apache apache-ssl apache2 ; do
test -x /etc/init.d/$service && invoke-rc.d $service start || true
done done