From 4693b51ec3bfaf4657bf6bbe1b090dd259a40ced Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Thu, 21 Jan 2016 10:30:11 -0500 Subject: [PATCH 07/11] 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(). --- 2.4/init/apache2.initd | 2 -- 1 file changed, 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) -- 2.4.10