Files
NLnetLabs-krill/pkg/rpm/postrm
T
2021-06-29 10:48:34 +02:00

9 lines
373 B
Bash

#!/bin/bash -e
# Script based on the RPM %systemd_postun scriptlet. See:
# - https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_systemd
# - https://cgit.freedesktop.org/systemd/systemd/tree/src/core/macros.systemd.in
systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
systemctl try-restart krill.service >/dev/null 2>&1 || :
fi