[debhelper-devel] [debhelper] 01/01: dh_installsystemd, dh_systemd_start: Use restart instad of try-restart
Niels Thykier
nthykier at moszumanska.debian.org
Sat Nov 4 11:39:03 UTC 2017
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository debhelper.
commit ed480aed29b6370cd0d97c889849adc63e6b83e0
Author: Niels Thykier <niels at thykier.net>
Date: Sat Nov 4 11:37:47 2017 +0000
dh_installsystemd,dh_systemd_start: Use restart instad of try-restart
Signed-off-by: Niels Thykier <niels at thykier.net>
---
autoscripts/postinst-systemd-restart | 2 +-
debian/changelog | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/autoscripts/postinst-systemd-restart b/autoscripts/postinst-systemd-restart
index 696fbb0..7d5b0da 100644
--- a/autoscripts/postinst-systemd-restart
+++ b/autoscripts/postinst-systemd-restart
@@ -1,7 +1,7 @@
if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true
if [ -n "$2" ]; then
- _dh_action=try-restart
+ _dh_action=restart
else
_dh_action=start
fi
diff --git a/debian/changelog b/debian/changelog
index 4ad81a2..e5608cc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -20,6 +20,9 @@ debhelper (10.10.6) UNRELEASED; urgency=medium
* dh_builddeb: Automatically handle renaming of dbgsym packages when
the extension of the dbgsym packages are different than for regular
deb packages.
+ * dh_installsystemd,dh_systemd_start: Use "restart" instead of the
+ "try-restart" action. This ensures that newly added services are
+ started the first time they are installed. (Closes: #879727)
-- Axel Beckert <abe at debian.org> Fri, 27 Oct 2017 23:48:44 +0200
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git
More information about the debhelper-devel
mailing list