diff options
author | B Stack <bgstack15@gmail.com> | 2016-10-27 09:57:35 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2016-10-27 09:57:35 -0400 |
commit | b37d1fa1f1deda881eef751358917c29f38871b8 (patch) | |
tree | 9ce4a391f1ace15689fa55b8f321ec20cfc722cf /DEBIAN/preinst | |
download | keepalive-b37d1fa1f1deda881eef751358917c29f38871b8.tar.gz keepalive-b37d1fa1f1deda881eef751358917c29f38871b8.tar.bz2 keepalive-b37d1fa1f1deda881eef751358917c29f38871b8.zip |
Added to git
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 |