summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '2.2/init/apache2.initd')
-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}