summaryrefslogtreecommitdiffstats
path: root/distro/deb/knot-resolver.postrm
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--distro/deb/knot-resolver.postrm8
1 files changed, 8 insertions, 0 deletions
diff --git a/distro/deb/knot-resolver.postrm b/distro/deb/knot-resolver.postrm
new file mode 100644
index 0000000..d67739e
--- /dev/null
+++ b/distro/deb/knot-resolver.postrm
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = "remove" ] && [ -x "/bin/systemctl" ]; then
+ systemctl stop system-kresd.slice || true
+fi
+
+#DEBHELPER#