summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2010-10-15 14:28:11 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2010-10-15 14:28:11 +0000
commit4449663bcce3bfab75ec0b258f5d6d11cde4fbcc (patch)
tree4dec414854805a09e63770ea36d178682ddba676 /app-emulation/libvirt/files
parentBelated spring cleaning of ebuilds and files. (diff)
downloadgentoo-2-4449663bcce3bfab75ec0b258f5d6d11cde4fbcc.tar.gz
gentoo-2-4449663bcce3bfab75ec0b258f5d6d11cde4fbcc.tar.bz2
gentoo-2-4449663bcce3bfab75ec0b258f5d6d11cde4fbcc.zip
Cleanup old versions.
(Portage version: 2.2_rc96/cvs/Linux x86_64)
Diffstat (limited to 'app-emulation/libvirt/files')
-rw-r--r--app-emulation/libvirt/files/libvirtd.confd15
-rwxr-xr-xapp-emulation/libvirt/files/libvirtd.init73
2 files changed, 0 insertions, 88 deletions
diff --git a/app-emulation/libvirt/files/libvirtd.confd b/app-emulation/libvirt/files/libvirtd.confd
deleted file mode 100644
index 705b78532b39..000000000000
--- a/app-emulation/libvirt/files/libvirtd.confd
+++ /dev/null
@@ -1,15 +0,0 @@
-# /etc/conf.d/libvirtd
-
-# You may want to add '--listen' to have libvirtd listen for tcp/ip connections
-# if you want to use libvirt for remote control
-
-# Please consult 'libvirtd --help' for more options
-
-#LIBVIRTD_OPTS="--listen"
-
-# Automatically shutdown KVM domains when stopping libvirtd
-LIBVIRTD_KVM_SHUTDOWN="yes"
-
-# Timeout in seconds until stopping libvirtd and "pulling the plug" on the
-# remaining VM's still in a running state
-#LIBVIRTD_KVM_SHUTDOWN_MAXWAIT="100"
diff --git a/app-emulation/libvirt/files/libvirtd.init b/app-emulation/libvirt/files/libvirtd.init
deleted file mode 100755
index 10765f5c0c3c..000000000000
--- a/app-emulation/libvirt/files/libvirtd.init
+++ /dev/null
@@ -1,73 +0,0 @@
-#!/sbin/runscript
-
-opts="start stop status reload restart"
-
-depend() {
- need net
- before sshd ntp-client ntpd nfs nfsmount rsyncd portmap dhcp
-}
-
-libvirtd_virsh() {
- # Silence errors because virsh always throws an error about
- # not finding the hypervisor version when connecting to libvirtd
- LC_ALL=C virsh -c qemu:///system "$@" 2>/dev/null
-}
-
-libvirtd_dom_list() {
- libvirtd_virsh list | grep running | awk '{ print $1 }'
-}
-
-libvirtd_dom_count() {
- libvirtd_dom_list | wc -l
-}
-
-start() {
- ebegin "Starting libvirtd"
- start-stop-daemon --start --quiet --exec /usr/sbin/libvirtd -- -d ${LIBVIRTD_OPTS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping libvirtd"
- # try to shutdown all (KVM/Qemu) domains
- DOM_COUNT="$(libvirtd_dom_count)"
- if [ "${LIBVIRTD_KVM_SHUTDOWN}" = "yes" ] \
- && [ "${DOM_COUNT}" != "0" ] ; then
-
- einfo " Shutting down domain(s):"
- for DOM_ID in $(libvirtd_dom_list) ; do
- NAME="$(libvirtd_virsh domname ${DOM_ID} | head -n 1)"
- einfo " ${NAME}"
- libvirtd_virsh shutdown ${DOM_ID} > /dev/null
- done
-
- if [ -n "${LIBVIRTD_KVM_SHUTDOWN_MAXWAIT}" ] ; then
- COUNTER="${LIBVIRTD_KVM_SHUTDOWN_MAXWAIT}"
- else
- COUNTER=100
- fi
-
- einfo " Waiting ${COUNTER} seconds while domains shutdown ..."
- DOM_COUNT="$(libvirtd_dom_count)"
- while [ ${DOM_COUNT} -gt 0 ] && [ ${COUNTER} -gt 0 ] ; do
- DOM_COUNT="$(libvirtd_dom_count)"
- sleep 1
- COUNTER=$((${COUNTER} - 1))
- echo -n "."
- done
-
- DOM_COUNT="$(libvirtd_dom_count)"
- if [ "${DOM_COUNT}" != "0" ] ; then
- eerror " !!! Some guests are still running, stopping anyways"
- fi
-
- fi
- start-stop-daemon --stop --quiet --exec /usr/sbin/libvirtd --pidfile=/var/run/libvirtd.pid
- eend $?
-}
-
-reload() {
- ebegin "Reloading libvirtd"
- start-stop-daemon --stop --signal HUP --quiet --pidfile /var/run/libvirtd.pid --oknodo
- eend $?
-}