[debhelper-devel] Bug#749400: Bug#749400: Acknowledgement (dh_installinit: disable init scripts on removal of package)

Joey Hess joeyh at debian.org
Mon May 26 22:22:40 UTC 2014


Cameron Norman wrote:
> diff --git a/autoscripts/postrm-init b/autoscripts/postrm-init
> index 6f5bb09..b5cecb8 100644
> --- a/autoscripts/postrm-init
> +++ b/autoscripts/postrm-init
> @@ -1,3 +1,5 @@
> +update-rc.d #SCRIPT# disable >/dev/null
> +
>  if [ "$1" = "purge" ] ; then
>  	update-rc.d #SCRIPT# remove >/dev/null
>  fi

This would leave a daemon's links disabled while a package was being
upgraded. Which could result in it not starting if the system were
rebooted at that point. It would also remain disabled if the upgrade
failed.

debhelper is simply copying from policy 9.3.3.1 here. I am very unlikely
to make a change away from what policy says to do.

-- 
see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20140526/15206b83/attachment-0001.sig>


More information about the debhelper-devel mailing list