[debhelper-devel] Bug#749400: Bug#749400: Acknowledgement (dh_installinit: disable init scripts on removal of package)
Cameron Norman
camerontnorman at gmail.com
Tue May 27 03:28:10 UTC 2014
El Mon, 26 de May 2014 a las 3:22 PM, Joey Hess <joeyh at debian.org>
escribió:
> 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.
>
Would the package's binary also not be installed in those situations,
or am I mistaken? Perhaps there is only a small window where this can
cause problems, if the upgrade failed in the postinst step before
dh_installinit.
> 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.
>
I see. I will have to go through that process then.
Thanks for the quick reply,
--
Cameron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20140527/17f0614a/attachment-0002.html>
More information about the debhelper-devel
mailing list