Skip to content
Snippets Groups Projects
Verified Commit aa406298 authored by Tomas Krizek's avatar Tomas Krizek
Browse files

distro/deb: use daemon-reload to update units before restart

parent 7fd175f2
Branches
Tags
1 merge request!927upgrade script for 5.0
......@@ -20,6 +20,8 @@ fi
# upon a change, we can and should remove this trigger.
if [ "$1" = "triggered" ]; then
if [ "$2" = "/usr/share/dns/root.key" ]; then
# use daemon-reload to load any unit changes
systemctl daemon-reload || true
# systemctl of the sub-services is the preferred method to restart
systemctl try-restart 'kresd@*.service' || true
fi
......@@ -27,6 +29,7 @@ if [ "$1" = "triggered" ]; then
fi
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
systemctl daemon-reload || true
systemctl try-restart 'kresd@*.service' || true
fi
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment