El Mon, 26 de May 2014 a las 3:22 PM, Joey Hess <jo...@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