]> git.donarmstrong.com Git - debhelper.git/commitdiff
r542: * dh_installinit: Always start daemon on upgraded even if
authorjoey <joey>
Sun, 4 Aug 2002 22:53:01 +0000 (22:53 +0000)
committerjoey <joey>
Sun, 4 Aug 2002 22:53:01 +0000 (22:53 +0000)
     --no-restart-on-upgrade is given; since the daemon is not stopped
     with that parameter starting it again is a no-op, unless the daemon was
     not running for some reason. This makes transtions to using the flag
     easier. Closes: #90976 and sorry it took me so long to verify you were
     right.

autoscripts/postinst-init-norestart [deleted file]
autoscripts/postinst-init-norestart-invoke [deleted file]
debian/changelog
dh_installinit

diff --git a/autoscripts/postinst-init-norestart b/autoscripts/postinst-init-norestart
deleted file mode 100644 (file)
index a574165..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-if [ -x "/etc/init.d/#SCRIPT#" ]; then
-       update-rc.d #SCRIPT# #INITPARMS# >/dev/null
-       if [ "$1" = "configure" ]; then
-               if [ -z "$2" ] || [ "$2" = "<unknown>" ]; then
-                       /etc/init.d/#SCRIPT# start
-               fi
-       fi
-fi
diff --git a/autoscripts/postinst-init-norestart-invoke b/autoscripts/postinst-init-norestart-invoke
deleted file mode 100644 (file)
index be1751c..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-if [ -x "/etc/init.d/#SCRIPT#" ]; then
-       update-rc.d #SCRIPT# #INITPARMS# >/dev/null
-       if [ "$1" = "configure" ]; then
-               if [ -z "$2" ] || [ "$2" = "<unknown>" ]; then
-                       invoke-rc.d #SCRIPT# start
-               fi
-       fi
-fi
index 8647303073ced8a0ab0389220b29583dce32bb39..709e49c308ac95f9a3df1475b53185c4d3daaf96 100644 (file)
@@ -1,3 +1,14 @@
+debhelper (4.1.3) unstable; urgency=low
+
+  * dh_installinit: Always start daemon on upgraded even if
+    --no-restart-on-upgrade is given; since the daemon is not stopped
+    with that parameter starting it again is a no-op, unless the daemon was
+    not running for some reason. This makes transtions to using the flag
+    easier. Closes: #90976 and sorry it took me so long to verify you were
+    right.
+
+ -- Joey Hess <joeyh@debian.org>  Sun,  4 Aug 2002 18:52:12 -0400
+
 debhelper (4.1.2) unstable; urgency=low
 
   * Typo, Closes: #155323
index 8af1751e7c0a059ca6e7bae338b783be91e40834..b20a1114780e66f2f06247b27d621d0fcd9b443d 100755 (executable)
@@ -150,17 +150,16 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                                addsubstvar($package, "misc:Depends", "sysvinit", ">= 2.80-1");
                                $substvaradded=1;
                        }
+                       autoscript($package,"postinst", "postinst-init$tailstr",
+                               "s/#SCRIPT#/$script/;s/#INITPARMS#/$params/");
                        # -r on the command line sets R_FLAG. If it's set,
-                       # there  is no restart on upgrade.
+                       # there  is no restart on upgrade, so don't stop
+                       # daemon. (It's ok that it's always started.)
                        if ($dh{R_FLAG}) {
-                               autoscript($package,"postinst", "postinst-init-norestart$tailstr",
-                                       "s/#SCRIPT#/$script/;s/#INITPARMS#/$params/");
                                autoscript($package,"prerm","prerm-init-norestart$tailstr",
                                        "s/#SCRIPT#/$script/;s/#INITPARMS#/$params/");
                        }
                        else {
-                               autoscript($package,"postinst","postinst-init$tailstr",
-                                       "s/#SCRIPT#/$script/;s/#INITPARMS#/$params/");
                                autoscript($package,"prerm","prerm-init$tailstr",
                                        "s/#SCRIPT#/$script/;s/#INITPARMS#/$params/");
                        }