diff options
author | 2016-01-21 10:30:11 -0500 | |
---|---|---|
committer | 2016-03-03 13:46:26 +0100 | |
commit | e2db37edd6987d81481688fa25c9f6c80d265734 (patch) | |
tree | 5b4a07b8b4668dfa37078c203fb64991ace20389 | |
parent | apache2.initd: set the path to the apache2 binary once, globally. (diff) | |
download | apache-e2db37edd6987d81481688fa25c9f6c80d265734.tar.gz apache-e2db37edd6987d81481688fa25c9f6c80d265734.tar.bz2 apache-e2db37edd6987d81481688fa25c9f6c80d265734.zip |
apache2.initd: do not call checkconfd() before stopping.
If we are attempting to stop (but not restart) apache2, then there is
no reason to check whether or not $SERVERROOT exists -- we should stop
apache2 either way. So remove that call to checkconfd().
-rwxr-xr-x | 2.4/init/apache2.initd | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/2.4/init/apache2.initd b/2.4/init/apache2.initd index c9d12c7..e493f05 100755 --- a/2.4/init/apache2.initd +++ b/2.4/init/apache2.initd @@ -85,8 +85,6 @@ start() { stop() { if [ "${RC_CMD}" = "restart" ]; then checkconfig || return 1 - else - checkconfd || return 1 fi PID=$(cat "${PIDFILE}" 2>/dev/null) |