summaryrefslogtreecommitdiff
path: root/debian/mdadm.postrm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/mdadm.postrm')
-rw-r--r--debian/mdadm.postrm2
1 files changed, 2 insertions, 0 deletions
diff --git a/debian/mdadm.postrm b/debian/mdadm.postrm
index 80591a76..ea6a0baa 100644
--- a/debian/mdadm.postrm
+++ b/debian/mdadm.postrm
@@ -16,6 +16,8 @@ case "${1:-}" in
esac
+[ -d /run/systemd/system ] && systemctl --system daemon-reload >/dev/null || :
+
# just in case somebody actually purges mdadm, we need this to make debconf
# (added by dh_installdebconf) behave. See #369953
set +u