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.

Location:
trunk/packages/invirt-web
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-web/debian/changelog

    r1841 r1855  
     1invirt-web (0.0.16) unstable; urgency=low
     2
     3  * make initscript stop command not leave apache2 processes lying around
     4    (so that restart works)
     5
     6 -- Greg Price <price@mit.edu>  Fri, 19 Dec 2008 22:34:31 -0500
     7
    18invirt-web (0.0.15) unstable; urgency=low
    29
  • 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.