commit:     c0d81cf2642f16a9b2e3137d491d708b3b2eb6ef
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Wed May 14 13:55:37 2014 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Wed May 14 13:55:37 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/apache.git;a=commit;h=c0d81cf2

Attempt to fix stop of apache with mod_perl (bug #503986)

---
 2.4/init/apache2.initd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/2.4/init/apache2.initd b/2.4/init/apache2.initd
index cf3936c..71d4e02 100755
--- a/2.4/init/apache2.initd
+++ b/2.4/init/apache2.initd
@@ -107,7 +107,7 @@ stop() {
        ${APACHE2} ${APACHE2_OPTS} -k stop
 
        local i=0 retval=0
-       while ( test -f "${PIDFILE}" && pgrep -P ${PID} apache2 >/dev/null ) \
+       while ( test -f "${PIDFILE}" || pgrep -P ${PID} apache2 >/dev/null ) \
                && [ $i -lt ${TIMEOUT} ]; do
                sleep 1 && i=$(expr $i + 1)
        done

Reply via email to