|
Lines 4-15
Link Here
|
| 4 |
|
4 |
|
| 5 |
--- gentoo-apache-2.2.23/init/apache2.initd |
5 |
--- gentoo-apache-2.2.23/init/apache2.initd |
| 6 |
+++ gentoo-apache-2.2.23/init/apache2.initd |
6 |
+++ gentoo-apache-2.2.23/init/apache2.initd |
| 7 |
@@ -77,12 +77,13 @@ |
7 |
@@ -77,12 +77,14 @@ |
| 8 |
# Use start stop daemon to apply system limits #347301 |
8 |
# Use start stop daemon to apply system limits #347301 |
| 9 |
start-stop-daemon --start -- ${APACHE2} ${APACHE2_OPTS} -k start |
9 |
start-stop-daemon --start -- ${APACHE2} ${APACHE2_OPTS} -k start |
| 10 |
|
10 |
|
| 11 |
- i=0 |
11 |
- i=0 |
| 12 |
+ local i=0 retval=1 |
12 |
+ local i=0 retval=1 |
|
|
13 |
+ [ -e "${PIDFILE}" ] && retval=0 |
| 13 |
while [ ! -e "${PIDFILE}" ] && [ $i -lt ${TIMEOUT} ]; do |
14 |
while [ ! -e "${PIDFILE}" ] && [ $i -lt ${TIMEOUT} ]; do |
| 14 |
sleep 1 && i=$(expr $i + 1) |
15 |
sleep 1 && i=$(expr $i + 1) |
| 15 |
+ [ -e "${PIDFILE}" ] && retval=0 |
16 |
+ [ -e "${PIDFILE}" ] && retval=0 |