commit:     e2db37edd6987d81481688fa25c9f6c80d265734
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 21 15:30:11 2016 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Thu Mar  3 12:46:26 2016 +0000
URL:        https://gitweb.gentoo.org/proj/apache.git/commit/?id=e2db37ed

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)

Reply via email to