1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
# deb prerm 2017-01-26 thisservice=keepalive.service { case "${1}" in remove) # Final removal. systemctl stop "${thisservice}" systemctl disable "${thisservice}" ;; upgrade) # Upgrade. $2 is new-version-number : ;; esac } 1>/dev/null 2>&1 exit 0