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/prerm | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 debian/prerm (limited to 'debian/prerm') 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# -- cgit v1.2.3