#!/bin/sh set -eu case "${1}" in remove|upgrade|deconfigure) # systemd: On uninstall (not upgrade), disable and stop the unit if [ -x /bin/systemctl ]; then if [ -e /lib/systemd/system/@PROJECT_APP_NAME@-db.service ]; then systemctl --no-reload disable @PROJECT_APP_NAME@-db >/dev/null 2>&1 || true systemctl stop @PROJECT_APP_NAME@-db >/dev/null 2>&1 || true fi systemctl --no-reload disable @PROJECT_APP_NAME@ >/dev/null 2>&1 || true systemctl stop @PROJECT_APP_NAME@ >/dev/null 2>&1 || true fi ;; failed-upgrade) ;; *) echo "prerm called with unknown argument \`${1}'" >&2 exit 1 ;; esac #DEBHELPER# exit 0