summaryrefslogtreecommitdiff
path: root/lib/Debian/Debhelper
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@debian.org>2013-06-17 19:34:06 +0200
committerMichael Stapelberg <michael@stapelberg.de>2013-06-17 19:44:43 +0200
commit6fb60249226eb4950bb5cc725cd0ac879e0095b6 (patch)
tree164021262b624776707d23b53f88f2c143f68fd9 /lib/Debian/Debhelper
parentd50611823c584b891ad076ef922cfddd67c51752 (diff)
downloadinit-system-helpers-6fb60249226eb4950bb5cc725cd0ac879e0095b6.tar.gz
refactor step 1: copy dh_systemd to dh_systemd_{enable,start}
Diffstat (limited to 'lib/Debian/Debhelper')
-rw-r--r--lib/Debian/Debhelper/Sequence/systemd.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Debian/Debhelper/Sequence/systemd.pm b/lib/Debian/Debhelper/Sequence/systemd.pm
index 6ad0274..bbaa405 100644
--- a/lib/Debian/Debhelper/Sequence/systemd.pm
+++ b/lib/Debian/Debhelper/Sequence/systemd.pm
@@ -3,6 +3,12 @@ use warnings;
use strict;
use Debian::Debhelper::Dh_Lib;
-insert_after("dh_installinit", "dh_systemd");
+# dh_systemd_enable runs unconditionally, and before dh_installinit, so that
+# the latter can use invoke-rc.d and all symlinks are already in place.
+insert_before("dh_installinit", "dh_systemd_enable");
+
+# dh_systemd_start handles the case where there is no corresponding init
+# script, so it runs after dh_installinit.
+insert_after("dh_installinit", "dh_systemd_start");
1