rspamd/debian/prerm
Mikhail Gusarov e10ddbdaef 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.
2015-03-17 18:58:34 +02:00

9 lines
140 B
Bash

#!/bin/sh
set -e
if [ -x /etc/init.d/rspamd ] && ! [ -d /run/systemd/system ]; then
invoke-rc.d rspamd stop || exit $?
fi
#DEBHELPER#