Dear Maintainer,

  I have prepared the patch which is safe for the inactive
virtlockd.service on upgrade.
  The patch is attached, please review.

Best regards,
Neutron Soutmun
--- libvirt-daemon-system.postinst.orig 2014-08-23 01:11:50.408986428 +0700
+++ libvirt-daemon-system.postinst  2014-08-23 01:09:52.505858506 +0700
@@ -104,8 +104,9 @@
         # 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 if enabled
-        if [ -d /run/systemd/system ] && systemctl is-enabled virtlockd.service >/dev/null; then
+        # Force virtlockd to reexec if enabled and running
+        if [ -d /run/systemd/system ] && systemctl is-enabled virtlockd.service >/dev/null \
+           && systemctl status virtlockd.service >/dev/null; then
            systemctl reload virtlockd.service
         fi
     ;;

Attachment: signature.asc
Description: Digital signature

Reply via email to