X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/880cccfcec2b9d02c9f1021aff834ca7b2af0b39..01e69265114c821dfc329273a79adec6b5d1575f:/files/etc/init.d/apache2.invirt?ds=sidebyside diff --git a/files/etc/init.d/apache2.invirt b/files/etc/init.d/apache2.invirt index 9b81115..3a4d69b 100755 --- a/files/etc/init.d/apache2.invirt +++ b/files/etc/init.d/apache2.invirt @@ -32,6 +32,11 @@ kstart_start () { kstart_stop () { if [ -e $KSTART_PIDFILE ]; then /sbin/start-stop-daemon --stop --pidfile $KSTART_PIDFILE + pgrep apache2 >/dev/null && sleep 1 \ + && pgrep apache2 >/dev/null && sleep 1 \ + && pgrep apache2 >/dev/null && sleep 1 \ + && pgrep apache2 >/dev/null && sleep 1 \ + && pkill -9 apache2 rm -f $KSTART_PIDFILE else echo -n " ... no kstart pidfile"