pmg-api/debian/prerm
Dietmar Maurer 2305fb86e4 debian/postinst/prerm - handle pmgproxy/pmgdaemon manually
We use reload instead of restart to keep vnc connection active
durning updates.
2017-12-05 14:10:26 +01:00

31 lines
468 B
Bash

#!/bin/sh
set -e
case "$1" in
remove)
;;
upgrade|deconfigure)
;;
failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
;;
esac
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
deb-systemd-invoke stop pmgproxy.service pmgdaemon.service >/dev/null
fi
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0