Ignore:
Timestamp:
Dec 17, 2009, 5:56:04 PM (14 years ago)
Author:
broder
Message:

Pass --no-start to dh_installinit in invirt-dev and run the initscript
by hand.

This works around a bug where init scripts are started before Python
modules have been fully installed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-dev/debian/invirt-dev.prerm

    r1782 r2630  
    2020case "$1" in
    2121    remove|upgrade|deconfigure)
    22         perl -i.bak -ne 's%^### (BEGIN|END) invirt-dev\s*$%%m && ($skip = ($1 eq "BEGIN")); print unless $skip;' /etc/sudoers
     22        perl -i.bak -ne 's%^### (BEGIN|END) invirt-dev\s*$%%m && ($skip = ($1 eq "BEGIN")); print unless $skip;' /etc/sudoers       
    2323    ;;
    2424
     
    3232esac
    3333
     34if [ -x /etc/init.d/invirt-dev ]; then
     35    if hash invoke-rc.d 2>/dev/null; then
     36        invoke-rc.d invirt-dev stop
     37    else
     38        /etc/init.d/invirt-dev stop
     39    fi
     40fi
     41
    3442# dh_installdeb will replace this with shell code automatically
    3543# generated by other debhelper scripts.
Note: See TracChangeset for help on using the changeset viewer.