mirror of
https://github.com/NLnetLabs/krill.git
synced 2026-09-20 16:37:43 +02:00
18 lines
509 B
Bash
Executable File
18 lines
509 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
# lintian warns maintainer-script-calls-systemctl.
|
|
# at https://lintian.debian.org/tags/maintainer-script-calls-systemctl.html it
|
|
# explains that deb-systemd-helper should be used instead, but we are not using
|
|
# debhelper, we are using cargo-deb, so we have to manage systemd ourselves.
|
|
uninstall_service_unit() {
|
|
if systemctl is-enabled krill.service >/dev/null; then
|
|
systemctl disable --now krill.service
|
|
fi
|
|
}
|
|
|
|
case "$1" in
|
|
remove|purge)
|
|
uninstall_service_unit
|
|
;;
|
|
esac |