From b85846c6d1d2bb261503ead80a99f4e70cf07cf7 Mon Sep 17 00:00:00 2001 From: Clement Laforet Date: Sun, 30 Oct 2005 20:51:56 +0000 Subject: [PATCH] - Don't rerun the apache2.sh rc script on restart's, just stop and start normally PR: ports/86402 Submitted by: Jarrod Sayers --- www/apache2/files/apache.sh | 2 +- www/apache20/files/apache.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/www/apache2/files/apache.sh b/www/apache2/files/apache.sh index 5c245d1f222d..5d6dc0db2e17 100644 --- a/www/apache2/files/apache.sh +++ b/www/apache2/files/apache.sh @@ -67,7 +67,7 @@ if [ -n "${2}" ]; then echo "$0: extra argument ignored" fi else - if [ "x${apache2_profiles}" != "x" ]; then + if [ "x${apache2_profiles}" != "x" -a "x${1}" != "xrestart" ]; then for profile in ${apache2_profiles}; do echo "===> apache2 profile: ${profile}" $0 $1 $profile diff --git a/www/apache20/files/apache.sh b/www/apache20/files/apache.sh index fe15a5421fb2..4afaeb55890b 100644 --- a/www/apache20/files/apache.sh +++ b/www/apache20/files/apache.sh @@ -67,7 +67,7 @@ if [ -n "${2}" ]; then echo "$0: extra argument ignored" fi else - if [ "x${apache2_profiles}" != "x" ]; then + if [ "x${apache2_profiles}" != "x" -a "x${1}" != "xrestart" ]; then for profile in ${apache2_profiles}; do echo "===> apache2 profile: ${profile}" $0 $1 $profile