Skip to content
Snippets Groups Projects
Commit d319f158 authored by Guido Günther's avatar Guido Günther
Browse files

Only reexec virtlockd if enabled

Closes: #758688
parent 00e55914
No related branches found
No related tags found
No related merge requests found
......@@ -104,8 +104,10 @@ case "$1" in
# Remove left over empty directory from pre 1.2.7
[ ! -d /etc/apparmor.d/libvirtd ] || rmdir --ignore-fail-on-non-empty /etc/apparmor.d/libvirtd
# Force virtlockd to reexec
[ -d /run/systemd/system ] && systemctl reload virtlockd.service
# Force virtlockd to reexec if enabled
if [ -d /run/systemd/system ] && systemctl is-enabled virtlockd.service >/dev/null; then
systemctl reload virtlockd.service
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment