mirror of
https://github.com/NLnetLabs/krill.git
synced 2026-09-27 20:04:52 +02:00
9 lines
373 B
Bash
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 |