[Pkg-libvirt-commits] [SCM] Libvirt Debian packaging branch, wheezy, updated. debian/0.9.12-8

Guido Günther agx at sigxcpu.org
Mon Mar 4 17:59:46 UTC 2013


The following commit has been merged in the wheezy branch:
commit 0ef17cce6332651493b5c4332001ace0d129aa1d
Author: Guido Günther <agx at sigxcpu.org>
Date:   Tue Feb 26 21:49:08 2013 +0100

    Enable systemd services

diff --git a/debian/libvirt-bin.postinst b/debian/libvirt-bin.postinst
index 53119a2..e706f88 100644
--- a/debian/libvirt-bin.postinst
+++ b/debian/libvirt-bin.postinst
@@ -97,6 +97,12 @@ case "$1" in
 	    sleep 1
 	fi
 
+	# enable libvirt-{bin,guests} for systemd
+	if [ -x /bin/systemctl ] && [ -d /sys/fs/cgroup/systemd ]; then
+            systemctl enable libvirt-bin.service
+            systemctl enable libvirt-guests.service
+	fi
+
 	if dpkg --compare-versions "$2" lt "0.6.1-2"; then
 	    if [ -e /etc/rc2.d/S20libvirt-bin ] && \
 	       [ -e /etc/rc3.d/S20libvirt-bin ] && \

-- 
Libvirt Debian packaging



More information about the Pkg-libvirt-commits mailing list