diff options
author | Michael Stapelberg <stapelberg@debian.org> | 2012-07-29 19:46:53 +0200 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-10-28 13:55:49 -0400 |
commit | 515ab3ada00addcc89b19dfcb5e4f1e1ff489aad (patch) | |
tree | bdd104fcc9785da5bd165ee048fe819973989bc6 /autoscripts/postinst-init-nostart | |
parent | 331434d0bb2f7bd1996566abb20e975cb234c878 (diff) |
Support systemd in dh_installinit and postinst/postrm
Diffstat (limited to 'autoscripts/postinst-init-nostart')
-rw-r--r-- | autoscripts/postinst-init-nostart | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/autoscripts/postinst-init-nostart b/autoscripts/postinst-init-nostart index 7a1bd5e8..ec6bdbd6 100644 --- a/autoscripts/postinst-init-nostart +++ b/autoscripts/postinst-init-nostart @@ -1,3 +1,9 @@ if [ -x "/etc/init.d/#SCRIPT#" ]; then + # In case this system is running systemd, we need to ensure that all + # necessary tmpfiles (if any) are created before starting. + if [ -d /sys/fs/cgroup/systemd ] ; then + systemd-tmpfiles --create >/dev/null || true + fi + update-rc.d #SCRIPT# #INITPARMS# >/dev/null || #ERROR_HANDLER# fi |