fix apache restart sequence so they don't get restarted twice and only if necessary

This commit is contained in:
Antoine Beaupré 2008-10-07 20:14:15 +00:00
parent 0334a1fa2b
commit 2363fe5b47
1 changed files with 3 additions and 3 deletions

View File

@ -302,7 +302,7 @@ fi
#######################################################################
# Reload services
#
for service in $SERVICES postfix bind9 courier-authdaemon \
for service in postfix bind9 courier-authdaemon \
courier-imap courier-imap-ssl courier-pop courier-pop-ssl \
cron proftpd; do
invoke-rc.d $service reload || true
@ -336,9 +336,9 @@ if [ "$HAS_ROOT" != "1" ]; then
fi
# We should restart apaches after all configuration stuff ...
for service in apache apache-ssl apache2 ; do
for service in $SERVICES; do
test -x /etc/init.d/$service && invoke-rc.d $service stop || true
done
for service in apache apache-ssl apache2 ; do
for service in $SERVICES; do
test -x /etc/init.d/$service && invoke-rc.d $service start || true
done