13 lines
490 B
Bash
Executable File
13 lines
490 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
# Automatically added by dh_installsystemd/13.14.1ubuntu5
|
|
if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = remove ] && [ -d /run/systemd/system ] ; then
|
|
deb-systemd-invoke stop 'spamd.service' >/dev/null || true
|
|
fi
|
|
# End automatically added section
|
|
# Automatically added by dh_installinit/13.14.1ubuntu5
|
|
if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = remove ] && [ -x "/etc/init.d/spamd" ] ; then
|
|
invoke-rc.d --skip-systemd-native spamd stop || exit 1
|
|
fi
|
|
# End automatically added section
|