[Pkg-libvirt-commits] [libvirt] 02/04: Reload virtlogd on updates
Guido Guenther
agx at moszumanska.debian.org
Sun Aug 14 09:31:34 UTC 2016
This is an automated email from the git hooks/post-receive script.
agx pushed a commit to branch debian/sid
in repository libvirt.
commit 297be03ce994de0e46089bbe55f1da923c87f932
Author: Guido Günther <agx at sigxcpu.org>
Date: Tue Aug 9 06:46:22 2016 +0200
Reload virtlogd on updates
Closes: #833745
---
debian/libvirt-daemon-system.postinst | 5 +++--
debian/rules | 2 ++
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/debian/libvirt-daemon-system.postinst b/debian/libvirt-daemon-system.postinst
index 10e10e7..d0d670d 100644
--- a/debian/libvirt-daemon-system.postinst
+++ b/debian/libvirt-daemon-system.postinst
@@ -105,8 +105,9 @@ 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-active -q virtlockd.service; then
- systemctl reload virtlockd.service
+ if [ -d /run/systemd/system ]; then
+ ! systemctl is-active -q virtlogd || systemctl reload virtlogd.service
+ ! systemctl is-active -q virtlockd || systemctl reload virtlockd.service
fi
# Force refresh of capabilties (#731815)
diff --git a/debian/rules b/debian/rules
index 72d986b..e07f32b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -124,6 +124,8 @@ DEB_CONFIGURE_EXTRA_ARGS := \
LIBVIRT_SYSTEM_SERVICES = \
libvirt-guests.service \
+ virtlogd.socket \
+ virtlogd.service \
virtlockd.socket \
virtlockd.service \
$(NULL)
--
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