[Pkg-libvirt-commits] [libvirt] 01/02: Only reexec virtlockd if enabled
Guido Guenther
agx at moszumanska.debian.org
Thu Aug 21 16:03:28 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 d319f15877676f72dad24c84d376fecc1faa4994
Author: Guido Günther <agx at sigxcpu.org>
Date: Thu Aug 21 16:08:50 2014 +0200
Only reexec virtlockd if enabled
Closes: #758688
---
debian/libvirt-daemon-system.postinst | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/debian/libvirt-daemon-system.postinst b/debian/libvirt-daemon-system.postinst
index f7e456f..dca34dc 100644
--- a/debian/libvirt-daemon-system.postinst
+++ b/debian/libvirt-daemon-system.postinst
@@ -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)
--
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