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

Use systemctl is-active to check if virtlockd is running

This is less heavyweight as status.

Thanks: Michael Biebl <biebl@debian.org>
Closes: #787973
parent 9135e2e8
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,7 @@ case "$1" in
[ ! -d /etc/apparmor.d/libvirtd ] || rmdir --ignore-fail-on-non-empty /etc/apparmor.d/libvirtd
# Force virtlockd to reexec if enabled
if [ -d /run/systemd/system ] && systemctl status virtlockd.service >/dev/null; then
if [ -d /run/systemd/system ] && systemctl is-active -q virtlockd.service; then
systemctl reload virtlockd.service
fi
......
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