aboutsummaryrefslogtreecommitdiffstats
path: root/debian/prerm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/prerm')
-rw-r--r--debian/prerm8
1 files changed, 8 insertions, 0 deletions
diff --git a/debian/prerm b/debian/prerm
new file mode 100644
index 000000000..94172155b
--- /dev/null
+++ b/debian/prerm
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+
+if [ -x /etc/init.d/rspamd ] && ! [ -d /run/systemd/system ]; then
+ invoke-rc.d rspamd stop || exit $?
+fi
+
+#DEBHELPER#