From 418435f110b5f39e6933272e051e15d919ef59b9 Mon Sep 17 00:00:00 2001 From: joey Date: Mon, 5 Feb 2001 18:09:36 +0000 Subject: [PATCH] r417: * dh_installinit -r: stop init script in prerm on package removal, Closes: #84974 --- autoscripts/prerm-init-norestart | 3 +++ debian/changelog | 7 +++++++ dh_installinit | 4 +++- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 autoscripts/prerm-init-norestart diff --git a/autoscripts/prerm-init-norestart b/autoscripts/prerm-init-norestart new file mode 100644 index 0000000..ec9820f --- /dev/null +++ b/autoscripts/prerm-init-norestart @@ -0,0 +1,3 @@ +if [ "$1" = remove ]; then + /etc/init.d/#SCRIPT# stop +fi diff --git a/debian/changelog b/debian/changelog index 4d6f213..7a4a895 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +debhelper (2.2.20) unstable; urgency=low + + * dh_installinit -r: stop init script in prerm on package removal, + Closes: #84974 + + -- Joey Hess Mon, 5 Feb 2001 10:06:31 -0800 + debhelper (2.2.19) unstable; urgency=low * dh_shlibdeps -l can handle relative paths now. Patch from Colin Watson diff --git a/dh_installinit b/dh_installinit index 7836a9e..cd3fca4 100755 --- a/dh_installinit +++ b/dh_installinit @@ -55,10 +55,12 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { # -r on the command line sets R_FLAG. If it's set, there # is no restart on upgrade. if ($dh{R_FLAG}) { - autoscript($PACKAGE,"postinst","postinst-init-norestart", + autoscript($PACKAGE,"postinst", "postinst-init-norestart", "s/#SCRIPT#/$script/;s/#INITPARMS#/$params/"); autoscript($PACKAGE,"postrm","postrm-init", "s/#SCRIPT#/$script/;s/#INITPARMS#/$params/"); + autoscript($PACKAGE,"prerm","prerm-init-norestart", + "s/#SCRIPT#/$script/;s/#INITPARMS#/$params/"); } else { autoscript($PACKAGE,"postinst","postinst-init", -- 2.39.2