summaryrefslogtreecommitdiff
path: root/Debian/Debhelper
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-05-08 00:05:30 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-05-08 00:05:30 -0400
commitda8e65c5335e21ba449d03def580bac1355cb0df (patch)
treed423990b8caea86f99e8044a50667d391d4b2cd2 /Debian/Debhelper
parent0dbdf93cb69c3336da3ffac4db50092ca982ff07 (diff)
dh_installinit: Add --restart-after-upgrade, which avoids stopping a daemon in the prerm, and instead restarts it in the postinst, keeping its downtime minimal. Since some daemons could break if files are upgraded while they're running, it's not the default. It might become the default in a future (v8) compatability level. Closes: #471060
Diffstat (limited to 'Debian/Debhelper')
-rw-r--r--Debian/Debhelper/Dh_Getopt.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Debian/Debhelper/Dh_Getopt.pm b/Debian/Debhelper/Dh_Getopt.pm
index 77e4a723..f8e02889 100644
--- a/Debian/Debhelper/Dh_Getopt.pm
+++ b/Debian/Debhelper/Dh_Getopt.pm
@@ -123,6 +123,7 @@ sub parseopts {
"r" => \$options{R_FLAG},
"no-restart-on-upgrade" => \$options{R_FLAG},
"no-start" => \$options{NO_START},
+ "R|restart-after-upgrade" => \$options{RESTART_AFTER_UPGRADE},
"k" => \$options{K_FLAG},
"keep" => \$options{K_FLAG},