Re: use of "invoke-rc.d $PACKAGE stop || exit $?" in prerm scripts
>
> inside their prerm maintainer scripts. If stopping $PACKAGE through
> invoke-rc.d/init-script fails, removing the package fails as well.
>
> Using:
>
> invoke-rc.d $PACKAGE stop || true
> /etc/init.d/$PACKAGE stop || true
>
We are using chroot environments (e.g. with sid) where no daemon is running
and invoke-rc.d will only do an "exit 0" in those chroots. Using the method
above, wouldn't there be any chance that a bad init script could kill
daemons started outside the chroot?
Thanks,
Bernd
Reply to: