summaryrefslogtreecommitdiff
path: root/dh_installinit
diff options
context:
space:
mode:
authorjoey <joey>2001-02-05 18:09:36 +0000
committerjoey <joey>2001-02-05 18:09:36 +0000
commit418435f110b5f39e6933272e051e15d919ef59b9 (patch)
tree6f7b1a57c2797d2eb5a487d655c759fc99fa19bc /dh_installinit
parent6648880ed40453cd7df9ad8a6a73e58e455dad92 (diff)
r417: * dh_installinit -r: stop init script in prerm on package removal,
Closes: #84974
Diffstat (limited to 'dh_installinit')
-rwxr-xr-xdh_installinit4
1 files changed, 3 insertions, 1 deletions
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",