summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2020-12-30 02:29:34 +0100
committerLars Wendler <polynomial-c@gentoo.org>2020-12-30 02:29:34 +0100
commit348521816ac865188a12f03b059d5463fe1f441e (patch)
treef16dd720beb90689c4620fba73a265f179485425
parent2.4/init: Another small interface check tweak (diff)
downloadapache-348521816ac865188a12f03b059d5463fe1f441e.tar.gz
apache-348521816ac865188a12f03b059d5463fe1f441e.tar.bz2
apache-348521816ac865188a12f03b059d5463fe1f441e.zip
2.4/init: Submit pidfile to s-s-d on start to not confuse status
Reported-by: Hank Leininger <hlein@korelogic.com> Bug: https://bugs.gentoo.org/762481 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
-rwxr-xr-x2.4/init/apache2.initd3
1 files changed, 2 insertions, 1 deletions
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