From 2363fe5b476beba254b6caddc541377812a78b75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Tue, 7 Oct 2008 20:14:15 +0000 Subject: [PATCH] fix apache restart sequence so they don't get restarted twice and only if necessary --- install/alternc.install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install/alternc.install b/install/alternc.install index 4d9e7e0c..ffe26e59 100644 --- a/install/alternc.install +++ b/install/alternc.install @@ -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