[Pkg-libvirt-commits] [libvirt] 01/01: Use systemctl is-active to check if virtlockd is running
Guido Guenther
agx at moszumanska.debian.org
Tue Jun 9 09:19:56 UTC 2015
This is an automated email from the git hooks/post-receive script.
agx pushed a commit to branch debian/sid
in repository libvirt.
commit 9958a7f931a7abed6362cdbaa3901f0cf41d21e6
Author: Guido Günther <agx at sigxcpu.org>
Date: Tue Jun 9 10:46:03 2015 +0200
Use systemctl is-active to check if virtlockd is running
This is less heavyweight as status.
Thanks: Michael Biebl <biebl at debian.org>
Closes: #787973
---
debian/libvirt-daemon-system.postinst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/libvirt-daemon-system.postinst b/debian/libvirt-daemon-system.postinst
index 2456739..10e10e7 100644
--- a/debian/libvirt-daemon-system.postinst
+++ b/debian/libvirt-daemon-system.postinst
@@ -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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libvirt.git
More information about the Pkg-libvirt-commits
mailing list