From 348521816ac865188a12f03b059d5463fe1f441e Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Wed, 30 Dec 2020 02:29:34 +0100 Subject: 2.4/init: Submit pidfile to s-s-d on start to not confuse status Reported-by: Hank Leininger Bug: https://bugs.gentoo.org/762481 Signed-off-by: Lars Wendler --- 2.4/init/apache2.initd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '2.4') 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 -- cgit v1.2.3-65-gdbad