]> git.donarmstrong.com Git - debhelper.git/commitdiff
r417: * dh_installinit -r: stop init script in prerm on package removal,
authorjoey <joey>
Mon, 5 Feb 2001 18:09:36 +0000 (18:09 +0000)
committerjoey <joey>
Mon, 5 Feb 2001 18:09:36 +0000 (18:09 +0000)
Closes: #84974
autoscripts/prerm-init-norestart [new file with mode: 0644]
debian/changelog
dh_installinit

diff --git a/autoscripts/prerm-init-norestart b/autoscripts/prerm-init-norestart
new file mode 100644 (file)
index 0000000..ec9820f
--- /dev/null
@@ -0,0 +1,3 @@
+if [ "$1" = remove ]; then
+       /etc/init.d/#SCRIPT# stop
+fi
index 4d6f21349a7ccc4cf9c5aaa6c4d7ed8eb917747f..7a4a89544d8728e2802367a97b6507eea387d4ca 100644 (file)
@@ -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 <joeyh@debian.org>  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
index 7836a9e21b6ef38dbc742e8956d339d80886d21a..cd3fca487c3671a6eda115b390a4df411b0e7c91 100755 (executable)
@@ -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",