Bug#645460: apache2.2-common: /etc/init.d/apache2 start and restart need to wait until really started
Hi,
The same problem exists in Debian wheezy:
# cat /etc/debian_version
7.0
# while true; do /etc/init.d/apache2 stop > /dev/null;
/etc/init.d/apache2 start; echo -n "Exit Code: "; echo $?;
/etc/init.d/apache2 status; echo; sleep 5; done
[ ok ] Starting web server: apache2.
Exit Code: 0
Apache2 is running (pid 25328).
[ ok ] Starting web server: apache2.
Exit Code: 0
Apache2 is NOT running.
[ ok ] Starting web server: apache2.
Exit Code: 0
Apache2 is running (pid 25517).
[ ok ] Starting web server: apache2.
Exit Code: 0
Apache2 is NOT running.
[ ok ] Starting web server: apache2.
Exit Code: 0
Apache2 is NOT running.
[ ok ] Starting web server: apache2.
Exit Code: 0
Apache2 is running (pid 25757).
[ ok ] Starting web server: apache2.
Exit Code: 0
Apache2 is NOT running.
^C
#
It makes lsb:apache2 unusable on pacemaker clusters.
--
Nerijus Kislauskas
Reply to: