try to reload proxmox-backup-proxy on package upgrade

This commit is contained in:
Dietmar Maurer
2020-06-22 09:39:37 +02:00
parent f28cfb322a
commit b28253d650
4 changed files with 49 additions and 4 deletions

10
debian/prerm vendored Normal file
View File

@ -0,0 +1,10 @@
#!/bin/sh
set -e
#DEBHELPER#
# modeled after dh_systemd_start output
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
deb-systemd-invoke stop 'proxmox-backup-banner.service' 'proxmox-backup-proxy.service' 'proxmox-backup.service' >/dev/null || true
fi