diff options
Diffstat (limited to 'DEBIAN/prerm')
-rwxr-xr-x | DEBIAN/prerm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/DEBIAN/prerm b/DEBIAN/prerm new file mode 100755 index 0000000..99a4f6a --- /dev/null +++ b/DEBIAN/prerm @@ -0,0 +1,18 @@ +#!/bin/sh + +thisservice=keepalive.service + +case "${1}" in + upgrade) + # This prerm upgrade is running because a newer version of this package is being installed. + # $2 is new-version-number + [ ] + ;; + remove) + # No new package being installed. Just remove it. + systemctl stop "${thisservice}" 1>/dev/null 2>&1 + systemctl disable "${thisservice}" 1>/dev/null 2>&1 + ;; +esac + +exit 0 |