diff options
Diffstat (limited to 'autoscripts/postrm-init')
-rw-r--r-- | autoscripts/postrm-init | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/autoscripts/postrm-init b/autoscripts/postrm-init index 1c292982..61dcfc53 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 |