#!/bin/sh
# Stop + disable the unit on removal (but not across an upgrade). Debian
# equivalent of the RPM %systemd_preun / pre_uninstall scriptlet.
set -e

case "$1" in
    remove)
        systemctl --no-reload disable --now leveva.service >/dev/null 2>&1 || true
        ;;
esac

exit 0
