summaryrefslogtreecommitdiff
path: root/2.2
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2013-11-22 09:48:24 +0100
committerLars Wendler <polynomial-c@gentoo.org>2013-11-22 09:48:24 +0100
commit42b9eef61847a4a815c5c3d9adb3030e1d3402b9 (patch)
tree9755823cd016a686b3e14496db8b56a60b570b28 /2.2
parentAdded files for apache-2.4 (diff)
downloadapache-42b9eef61847a4a815c5c3d9adb3030e1d3402b9.tar.gz
apache-42b9eef61847a4a815c5c3d9adb3030e1d3402b9.tar.bz2
apache-42b9eef61847a4a815c5c3d9adb3030e1d3402b9.zip
Fixed startup of init scripts
Diffstat (limited to '2.2')
-rwxr-xr-x2.2/init/apache2.initd7
1 files changed, 5 insertions, 2 deletions
diff --git a/2.2/init/apache2.initd b/2.2/init/apache2.initd
index 002e278..e3bc921 100755
--- a/2.2/init/apache2.initd
+++ b/2.2/init/apache2.initd
@@ -78,9 +78,12 @@ start() {
start-stop-daemon --start -- ${APACHE2} ${APACHE2_OPTS} -k start
local i=0 retval=1
- while [ ! -e "${PIDFILE}" ] && [ $i -lt ${TIMEOUT} ]; do
+ while [ $i -lt ${TIMEOUT} ] ; do
+ if [ -e "${PIDFILE}" ] ; then
+ retval=0
+ break
+ fi
sleep 1 && i=$(expr $i + 1)
- [ -e "${PIDFILE}" ] && retval=0
done
eend ${retval}