commit:     348521816ac865188a12f03b059d5463fe1f441e
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 30 01:29:34 2020 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Wed Dec 30 01:29:34 2020 +0000
URL:        https://gitweb.gentoo.org/proj/apache.git/commit/?id=34852181

2.4/init: Submit pidfile to s-s-d on start to not confuse status

Reported-by: Hank Leininger <hlein <AT> korelogic.com>
Bug: https://bugs.gentoo.org/762481
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

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

diff --git a/2.4/init/apache2.initd b/2.4/init/apache2.initd
index 77e9e36..fc09ddd 100755
--- a/2.4/init/apache2.initd
+++ b/2.4/init/apache2.initd
@@ -92,7 +92,8 @@ start() {
 
        ebegin "Starting ${SVCNAME}"
        # Use start stop daemon to apply system limits #347301 
-       start-stop-daemon --start -- ${APACHE2} ${APACHE2_OPTS} -k start
+       start-stop-daemon --start --pidfile "${PIDFILE}" -- \
+               ${APACHE2} ${APACHE2_OPTS} -k start
 
        local i=0 retval=1
        while [ $i -lt ${TIMEOUT} ] ; do

Reply via email to