From 469c74d0ac590016eeae847e3fe4c353c6e0c25b Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 29 Oct 2012 18:06:29 +0100 Subject: dh_installinit: only add systemd-tmpfiles --create when shipping tmpfiles --- autoscripts/postinst-init | 6 ------ autoscripts/postinst-init-tmpfiles | 5 +++++ 2 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 autoscripts/postinst-init-tmpfiles (limited to 'autoscripts') diff --git a/autoscripts/postinst-init b/autoscripts/postinst-init index f5371ce8..2430b2c0 100644 --- a/autoscripts/postinst-init +++ b/autoscripts/postinst-init @@ -1,10 +1,4 @@ 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 invoke-rc.d #SCRIPT# start || #ERROR_HANDLER# fi diff --git a/autoscripts/postinst-init-tmpfiles b/autoscripts/postinst-init-tmpfiles new file mode 100644 index 00000000..41f738a9 --- /dev/null +++ b/autoscripts/postinst-init-tmpfiles @@ -0,0 +1,5 @@ +# 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 -- cgit v1.2.3