diff options
author | Michael Stapelberg <stapelberg@debian.org> | 2013-06-17 19:34:06 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2013-06-17 19:44:43 +0200 |
commit | 6fb60249226eb4950bb5cc725cd0ac879e0095b6 (patch) | |
tree | 164021262b624776707d23b53f88f2c143f68fd9 /lib/Debian/Debhelper | |
parent | d50611823c584b891ad076ef922cfddd67c51752 (diff) | |
download | init-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.pm | 8 |
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 |