From 8cd557b8e33ce2edbf2bc8924309c347c45a01c2 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 14 Jul 2013 22:14:47 +0200 Subject: dh_systemd_start: add --no-start --- script/dh_systemd_start | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'script/dh_systemd_start') diff --git a/script/dh_systemd_start b/script/dh_systemd_start index f1752bb..8d18805 100755 --- a/script/dh_systemd_start +++ b/script/dh_systemd_start @@ -46,6 +46,11 @@ this option. Do not stop service on upgrade. +=item B<--no-start> + +Do not start the unit file after upgrades and after initial installation (the +latter is only relevant for services without a corresponding init script). + =back =head1 NOTES @@ -185,9 +190,10 @@ foreach my $package (@{$dh{DOPACKAGES}}) { if ($dh{RESTART_AFTER_UPGRADE}) { $sd_autoscript->("postinst", "postinst-systemd-restart"); - } else { + } elsif (!$dh{NO_START}) { # We need to stop/start before/after the upgrade. $sd_autoscript->("postinst", "postinst-systemd-start"); + } } $sd_autoscript->("postrm", "postrm-systemd-reload-only"); -- cgit v1.2.3