[Pkg-libvirt-commits] [SCM] Libvirt Debian packaging branch, experimental, updated. debian/0.8.6-1-8-g6408c57
Laurent Léonard
laurent at open-minds.org
Tue Dec 14 10:49:01 UTC 2010
The following commit has been merged in the experimental branch:
commit 6408c577aa325ab4ca62447073c377b984fb15a4
Author: Laurent Léonard <laurent at open-minds.org>
Date: Tue Dec 14 11:28:10 2010 +0100
Remove libvirt-suspendonreboot
diff --git a/debian/libvirt-bin.examples b/debian/libvirt-bin.examples
index 9840da7..808528c 100644
--- a/debian/libvirt-bin.examples
+++ b/debian/libvirt-bin.examples
@@ -2,4 +2,3 @@ daemon/libvirtd.conf
daemon/libvirtd.policy-0
daemon/libvirtd.policy-1
daemon/libvirtd.sasl
-debian/libvirt-suspendonreboot
diff --git a/debian/libvirt-suspendonreboot b/debian/libvirt-suspendonreboot
deleted file mode 100644
index 088527f..0000000
--- a/debian/libvirt-suspendonreboot
+++ /dev/null
@@ -1,48 +0,0 @@
-#! /bin/sh
-### BEGIN INIT INFO
-# Provides: libvirt-suspendonreboot
-# Required-Start: libvirt-bin
-# Required-Stop: libvirt-bin $remote_fs
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# Short-Description: suspend/resmum vms on reboot
-### END INIT INFO
-# (c) Andi Barth <aba at not.so.argh.org> 2008
-# Distributable under the terms of the GNU GPL version 2.
-#
-# copy to /etc/init.d/libvirt-suspendonreboot and use
-# update-rc.d libvirt-suspendonreboot defaults 29 71
-# to enable
-
-PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
-
-suspenddir=/var/lib/libvirt/autosuspend
-
-case "$1" in
- start)
- for domain in ${suspenddir}/*dump; do
- if [ -f $domain ]; then
- domain=$(basename $domain .dump)
- echo "resuming $domain ..."
- virsh restore ${suspenddir}/${domain}.dump && rm ${suspenddir}/${domain}.dump
- fi
- done
- ;;
- stop)
- for domain in /etc/libvirt/qemu/*xml; do
- domain=$(basename $domain .xml)
- state=$(virsh domstate $domain)
- if [ "$state" = "running" ]; then
- echo "suspending $domain ..."
- virsh save ${domain} ${suspenddir}/${domain}.dump
- fi
- done
- ;;
- reload|force-reload|restart)
- # No action, nothing to reload
- ;;
- *)
- echo "Usage: $0 {start|stop|restart|reload|force-reload}" >&2
- exit 1
-esac
-
--
Libvirt Debian packaging
More information about the Pkg-libvirt-commits
mailing list