Ignore:
Timestamp:
Dec 19, 2008, 10:58:36 PM (16 years ago)
Author:
price
Message:

invirt-web: make initscript stop command not leave apache2 processes lying around

This makes restart/force-reload work correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-web/files/etc/init.d/apache2.invirt

    r1690 r1855  
    3333    if [ -e $KSTART_PIDFILE ]; then
    3434        /sbin/start-stop-daemon --stop --pidfile $KSTART_PIDFILE
     35        pgrep apache2 >/dev/null && sleep 1 \
     36         && pgrep apache2 >/dev/null && sleep 1 \
     37         && pgrep apache2 >/dev/null && sleep 1 \
     38         && pgrep apache2 >/dev/null && sleep 1 \
     39         && pkill -9 apache2
    3540        rm -f $KSTART_PIDFILE
    3641    else
Note: See TracChangeset for help on using the changeset viewer.