summaryrefslogtreecommitdiff
path: root/autoscripts/postrm-init
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@debian.org>2012-07-29 19:46:53 +0200
committerJoey Hess <joey@kitenet.net>2012-10-28 13:55:49 -0400
commit515ab3ada00addcc89b19dfcb5e4f1e1ff489aad (patch)
treebdd104fcc9785da5bd165ee048fe819973989bc6 /autoscripts/postrm-init
parent331434d0bb2f7bd1996566abb20e975cb234c878 (diff)
Support systemd in dh_installinit and postinst/postrm
Diffstat (limited to 'autoscripts/postrm-init')
-rw-r--r--autoscripts/postrm-init7
1 files changed, 7 insertions, 0 deletions
diff --git a/autoscripts/postrm-init b/autoscripts/postrm-init
index 1c29298..61dcfc5 100644
--- a/autoscripts/postrm-init
+++ b/autoscripts/postrm-init
@@ -1,3 +1,10 @@
if [ "$1" = "purge" ] ; then
update-rc.d #SCRIPT# remove >/dev/null
fi
+
+
+# In case this system is running systemd, we make systemd reload the unit files
+# to pick up changes.
+if [ -d /sys/fs/cgroup/systemd ] ; then
+ systemctl --system daemon-reload >/dev/null || true
+fi