From e10ddbdaefe0c74875648bf182e000d0b5e42a82 Mon Sep 17 00:00:00 2001 From: Mikhail Gusarov Date: Sat, 7 Mar 2015 10:23:13 +0000 Subject: Work around Debian mishandling of systemd socket-activated units If there is a backward compatibility sysvinit script, then even socket-activated services are started automatically after install/upgrade. --- debian/postrm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'debian/postrm') diff --git a/debian/postrm b/debian/postrm index 10a84805e..0ab952d46 100644 --- a/debian/postrm +++ b/debian/postrm @@ -1,6 +1,14 @@ #!/bin/sh set -e +if [ "$1" = "purge" ]; then + update-rc.d rspamd remove >/dev/null +fi + +if [ -d /run/systemd/system ]; then + systemctl --system daemon-reload >/dev/null || true +fi + #DEBHELPER# case "$1" in -- cgit v1.2.3