summaryrefslogtreecommitdiff
path: root/autoscripts/postrm-systemd
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts/postrm-systemd')
-rw-r--r--autoscripts/postrm-systemd5
1 files changed, 5 insertions, 0 deletions
diff --git a/autoscripts/postrm-systemd b/autoscripts/postrm-systemd
new file mode 100644
index 0000000..ddc2269
--- /dev/null
+++ b/autoscripts/postrm-systemd
@@ -0,0 +1,5 @@
+if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
+ if [ -x "/usr/bin/deb-systemd-helper" ]; then
+ deb-systemd-helper disable #UNITFILES# >/dev/null
+ fi
+fi