summaryrefslogtreecommitdiff
path: root/autoscripts/postrm-init
diff options
context:
space:
mode:
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