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-tmpfiles | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 autoscripts/postinst-init-tmpfiles (limited to 'autoscripts/postinst-init-tmpfiles') 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