diff options
Diffstat (limited to 'DEBIAN/preinst')
-rwxr-xr-x | DEBIAN/preinst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/DEBIAN/preinst b/DEBIAN/preinst new file mode 100755 index 0000000..75ff571 --- /dev/null +++ b/DEBIAN/preinst @@ -0,0 +1,17 @@ +#!/bin/sh +#https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html +thisservice=keepalive.service + +case "${1}" in + upgrade) + # This preinst is being run before an upgrade. + # $2 is old-version-number + systemctl stop keepalive.service 1>/dev/null 2>&1 + ;; + install) + # Brand new installation of the package. + [ ] + ;; +esac + +exit 0 |