[Pkg-libvirt-commits] [SCM] Libvirt debian packaging branch, experimental, updated. debian/0.5.1-5-7-gd6e79a0
Guido Günther
agx at sigxcpu.org
Thu Feb 5 20:00:30 UTC 2009
The following commit has been merged in the experimental branch:
commit 6e8caa09d958d060f17cad10b8a1242d2a72b407
Author: Guido Günther <agx at sigxcpu.org>
Date: Thu Feb 5 17:15:57 2009 +0100
restart libvirt daemon on upgrades if possible
Closes: #492694, #499008
diff --git a/debian/libvirt-bin.postinst b/debian/libvirt-bin.postinst
index 1762409..9834b66 100644
--- a/debian/libvirt-bin.postinst
+++ b/debian/libvirt-bin.postinst
@@ -23,6 +23,15 @@ case "$1" in
if ! getent group libvirt >/dev/null; then
addgroup --system libvirt
fi
+
+ # libvirt from 0.6.0 on is safe to restart with running vms:
+ if [ -n "$2" ] && dpkg --compare-versions "$2" ge 0.6.0; then
+ if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
+ invoke-rc.d libvirt-bin stop
+ else
+ /etc/init.d/libvirt-bin stop
+ fi
+ fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
--
Libvirt debian packaging
More information about the Pkg-libvirt-commits
mailing list