[Pkg-libvirt-commits] [libvirt] 01/02: Check status in a systemd 208 compatible way

Guido Guenther agx at moszumanska.debian.org
Sun Aug 24 09:19:13 UTC 2014


This is an automated email from the git hooks/post-receive script.

agx pushed a commit to branch master
in repository libvirt.

commit 653447832326103034d7d3b7ff3e84f31e928675
Author: Guido Günther <agx at sigxcpu.org>
Date:   Sun Aug 24 10:52:16 2014 +0200

    Check status in a systemd 208 compatible way
    
    systemd 204 returned 0 when trying to reload a not running service but
    208 changed behaviour. So use status instead of is-enabled.
    
    Thanks: Neutron Soutmun for his feedback
    Closes: #758688
---
 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 dca34dc..ff68fd3 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 is-enabled virtlockd.service >/dev/null; then
+        if [ -d /run/systemd/system ] && systemctl status virtlockd.service >/dev/null; 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