- Update to libvirt 1.0.1
- Introduce virtlockd daemon
- parallels: add disk and network device support
- Add virDomainSendProcessSignal API
- Introduce virDomainFSTrim() public API
- add fuse support for libvirt lxc
- Add Gluster protocol as supported network disk backend
- various snapshot improvements
- Add upstream patches to fix bugs in 1.0.1
66ff2ddc-virtlockd-systemd-file-perms.patch,
462a6962-script-fixes1.patch, cb854b8f-script-fixes2.patch,
5ec4b22b-script-fixes3.patch, a1fd56cb-script-fixes4.patch,
68e7bc45-libxl-link-fix.patch
- Rework SUSE patches for the various init scripts
Dropped use-init-script-redhat.patch and added
libvirtd-init-script.patch, libvirt-guests-init-script.patch,
and virtlockd-init-script.patch
- Drop upstream patches: 371ddc98-xen-sysctl-9.patch,
416eca18-xenstore-header-fix.patch,
f644361b-virCommand-env.patch, 2b32735a-virCommand-env.patch,
9785f2b6-fix-xen-sysctl9.patch
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=238
2013-01-07 19:44:26 +01:00
|
|
|
Adjust libvirt-guests init files to conform to SUSE standards
|
|
|
|
|
2013-04-02 23:49:11 +02:00
|
|
|
Index: libvirt-1.0.4/tools/libvirt-guests.init.in
|
- Update to libvirt 1.0.1
- Introduce virtlockd daemon
- parallels: add disk and network device support
- Add virDomainSendProcessSignal API
- Introduce virDomainFSTrim() public API
- add fuse support for libvirt lxc
- Add Gluster protocol as supported network disk backend
- various snapshot improvements
- Add upstream patches to fix bugs in 1.0.1
66ff2ddc-virtlockd-systemd-file-perms.patch,
462a6962-script-fixes1.patch, cb854b8f-script-fixes2.patch,
5ec4b22b-script-fixes3.patch, a1fd56cb-script-fixes4.patch,
68e7bc45-libxl-link-fix.patch
- Rework SUSE patches for the various init scripts
Dropped use-init-script-redhat.patch and added
libvirtd-init-script.patch, libvirt-guests-init-script.patch,
and virtlockd-init-script.patch
- Drop upstream patches: 371ddc98-xen-sysctl-9.patch,
416eca18-xenstore-header-fix.patch,
f644361b-virCommand-env.patch, 2b32735a-virCommand-env.patch,
9785f2b6-fix-xen-sysctl9.patch
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=238
2013-01-07 19:44:26 +01:00
|
|
|
===================================================================
|
2013-04-02 23:49:11 +02:00
|
|
|
--- libvirt-1.0.4.orig/tools/libvirt-guests.init.in
|
|
|
|
+++ libvirt-1.0.4/tools/libvirt-guests.init.in
|
- Update to libvirt 1.0.1
- Introduce virtlockd daemon
- parallels: add disk and network device support
- Add virDomainSendProcessSignal API
- Introduce virDomainFSTrim() public API
- add fuse support for libvirt lxc
- Add Gluster protocol as supported network disk backend
- various snapshot improvements
- Add upstream patches to fix bugs in 1.0.1
66ff2ddc-virtlockd-systemd-file-perms.patch,
462a6962-script-fixes1.patch, cb854b8f-script-fixes2.patch,
5ec4b22b-script-fixes3.patch, a1fd56cb-script-fixes4.patch,
68e7bc45-libxl-link-fix.patch
- Rework SUSE patches for the various init scripts
Dropped use-init-script-redhat.patch and added
libvirtd-init-script.patch, libvirt-guests-init-script.patch,
and virtlockd-init-script.patch
- Drop upstream patches: 371ddc98-xen-sysctl-9.patch,
416eca18-xenstore-header-fix.patch,
f644361b-virCommand-env.patch, 2b32735a-virCommand-env.patch,
9785f2b6-fix-xen-sysctl9.patch
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=238
2013-01-07 19:44:26 +01:00
|
|
|
@@ -3,15 +3,15 @@
|
|
|
|
# the following is the LSB init header
|
|
|
|
#
|
|
|
|
### BEGIN INIT INFO
|
|
|
|
-# Provides: libvirt-guests
|
|
|
|
-# Required-Start: libvirtd
|
|
|
|
-# Required-Stop: libvirtd
|
|
|
|
-# Default-Start: 2 3 4 5
|
|
|
|
-# Default-Stop: 0 1 6
|
|
|
|
+# Provides: libvirt-guests
|
|
|
|
+# Required-Start: $network $remote_fs libvirtd
|
|
|
|
+# Required-Stop: $network $remote_fs libvirtd
|
|
|
|
+# Default-Start: 3 5
|
|
|
|
+# Default-Stop: 0 1 2 4 6
|
|
|
|
# Short-Description: suspend/resume libvirt guests on shutdown/boot
|
|
|
|
-# Description: This is a script for suspending active libvirt guests
|
|
|
|
-# on shutdown and resuming them on next boot
|
|
|
|
-# See http://libvirt.org
|
|
|
|
+# Description: This is a script for suspending active libvirt guests
|
|
|
|
+# on shutdown and resuming them on next boot
|
|
|
|
+# See http://libvirt.org
|
|
|
|
### END INIT INFO
|
|
|
|
|
|
|
|
# the following is chkconfig init header
|
2013-04-02 23:49:11 +02:00
|
|
|
Index: libvirt-1.0.4/tools/libvirt-guests.sh.in
|
- Update to libvirt 1.0.1
- Introduce virtlockd daemon
- parallels: add disk and network device support
- Add virDomainSendProcessSignal API
- Introduce virDomainFSTrim() public API
- add fuse support for libvirt lxc
- Add Gluster protocol as supported network disk backend
- various snapshot improvements
- Add upstream patches to fix bugs in 1.0.1
66ff2ddc-virtlockd-systemd-file-perms.patch,
462a6962-script-fixes1.patch, cb854b8f-script-fixes2.patch,
5ec4b22b-script-fixes3.patch, a1fd56cb-script-fixes4.patch,
68e7bc45-libxl-link-fix.patch
- Rework SUSE patches for the various init scripts
Dropped use-init-script-redhat.patch and added
libvirtd-init-script.patch, libvirt-guests-init-script.patch,
and virtlockd-init-script.patch
- Drop upstream patches: 371ddc98-xen-sysctl-9.patch,
416eca18-xenstore-header-fix.patch,
f644361b-virCommand-env.patch, 2b32735a-virCommand-env.patch,
9785f2b6-fix-xen-sysctl9.patch
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=238
2013-01-07 19:44:26 +01:00
|
|
|
===================================================================
|
2013-04-02 23:49:11 +02:00
|
|
|
--- libvirt-1.0.4.orig/tools/libvirt-guests.sh.in
|
|
|
|
+++ libvirt-1.0.4/tools/libvirt-guests.sh.in
|
- Update to libvirt 1.0.1
- Introduce virtlockd daemon
- parallels: add disk and network device support
- Add virDomainSendProcessSignal API
- Introduce virDomainFSTrim() public API
- add fuse support for libvirt lxc
- Add Gluster protocol as supported network disk backend
- various snapshot improvements
- Add upstream patches to fix bugs in 1.0.1
66ff2ddc-virtlockd-systemd-file-perms.patch,
462a6962-script-fixes1.patch, cb854b8f-script-fixes2.patch,
5ec4b22b-script-fixes3.patch, a1fd56cb-script-fixes4.patch,
68e7bc45-libxl-link-fix.patch
- Rework SUSE patches for the various init scripts
Dropped use-init-script-redhat.patch and added
libvirtd-init-script.patch, libvirt-guests-init-script.patch,
and virtlockd-init-script.patch
- Drop upstream patches: 371ddc98-xen-sysctl-9.patch,
416eca18-xenstore-header-fix.patch,
f644361b-virCommand-env.patch, 2b32735a-virCommand-env.patch,
9785f2b6-fix-xen-sysctl9.patch
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=238
2013-01-07 19:44:26 +01:00
|
|
|
@@ -1,13 +1,12 @@
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
+. /etc/rc.status
|
|
|
|
+rc_reset
|
|
|
|
+
|
|
|
|
sysconfdir="@sysconfdir@"
|
|
|
|
localstatedir="@localstatedir@"
|
|
|
|
libvirtd="@sbindir@"/libvirtd
|
|
|
|
|
|
|
|
-# Source function library.
|
|
|
|
-test ! -r "$sysconfdir"/rc.d/init.d/functions ||
|
|
|
|
- . "$sysconfdir"/rc.d/init.d/functions
|
|
|
|
-
|
|
|
|
# Source gettext library.
|
|
|
|
# Make sure this file is recognized as having translations: _("dummy")
|
|
|
|
. "@bindir@"/gettext.sh
|
|
|
|
@@ -26,9 +25,11 @@ test -f "$sysconfdir"/sysconfig/libvirt-
|
|
|
|
. "$sysconfdir"/sysconfig/libvirt-guests
|
|
|
|
|
|
|
|
LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
|
|
|
|
-VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests
|
|
|
|
-
|
|
|
|
-RETVAL=0
|
|
|
|
+if [ -d "$localstatedir"/lock/subsys ]; then
|
|
|
|
+ VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests
|
|
|
|
+else
|
|
|
|
+ VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/libvirt-guests
|
|
|
|
+fi
|
|
|
|
|
|
|
|
# retval COMMAND ARGUMENTS...
|
|
|
|
# run command with arguments and convert non-zero return value to 1 and set
|
|
|
|
@@ -36,7 +37,7 @@ RETVAL=0
|
|
|
|
retval() {
|
|
|
|
"$@"
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
- RETVAL=1
|
|
|
|
+ rc_failed 1
|
|
|
|
return 1
|
|
|
|
else
|
|
|
|
return 0
|
|
|
|
@@ -65,6 +66,25 @@ run_virsh_c() {
|
|
|
|
( export LC_ALL=C; run_virsh "$@" )
|
|
|
|
}
|
|
|
|
|
|
|
|
+await_daemon_up()
|
|
|
|
+{
|
|
|
|
+ uri=$1
|
|
|
|
+ i=1
|
|
|
|
+ rets=10
|
|
|
|
+ run_virsh $uri list > /dev/null 2>&1
|
|
|
|
+ while [ $? -ne 0 -a $i -lt $rets ]; do
|
|
|
|
+ sleep 1
|
|
|
|
+ echo -n .
|
|
|
|
+ i=$(($i + 1))
|
|
|
|
+ run_virsh $uri list > /dev/null 2>&1
|
|
|
|
+ done
|
|
|
|
+ if [ $i -eq $rets ]; then
|
|
|
|
+ echo $"libvirt-guests unable to connect to URI: $uri"
|
|
|
|
+ return 1
|
|
|
|
+ fi
|
|
|
|
+ return 0
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
# test_connect URI
|
|
|
|
# check if URI is reachable
|
|
|
|
test_connect()
|
|
|
|
@@ -91,7 +111,7 @@ list_guests() {
|
|
|
|
|
|
|
|
list=$(run_virsh_c "$uri" list --uuid $persistent)
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
- RETVAL=1
|
|
|
|
+ rc_failed 1
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
@@ -117,7 +137,7 @@ guest_is_on() {
|
|
|
|
guest_running=false
|
|
|
|
id=$(run_virsh "$uri" domid "$uuid")
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
- RETVAL=1
|
|
|
|
+ rc_failed 1
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
@@ -165,6 +185,12 @@ start() {
|
|
|
|
|
|
|
|
test_connect "$uri" || continue
|
|
|
|
|
|
|
|
+ await_daemon_up $uri
|
|
|
|
+ if [ $? -ne 0 ]; then
|
|
|
|
+ echo $"Ignoring guests on $uri URI, can't connect"
|
|
|
|
+ continue
|
|
|
|
+ fi
|
|
|
|
+
|
|
|
|
eval_gettext "Resuming guests on \$uri URI..."; echo
|
|
|
|
for guest in $list; do
|
|
|
|
name=$(guest_name "$uri" "$guest")
|
2013-04-02 23:49:11 +02:00
|
|
|
@@ -378,7 +404,7 @@ shutdown_guests_parallel()
|
- Update to libvirt 1.0.1
- Introduce virtlockd daemon
- parallels: add disk and network device support
- Add virDomainSendProcessSignal API
- Introduce virDomainFSTrim() public API
- add fuse support for libvirt lxc
- Add Gluster protocol as supported network disk backend
- various snapshot improvements
- Add upstream patches to fix bugs in 1.0.1
66ff2ddc-virtlockd-systemd-file-perms.patch,
462a6962-script-fixes1.patch, cb854b8f-script-fixes2.patch,
5ec4b22b-script-fixes3.patch, a1fd56cb-script-fixes4.patch,
68e7bc45-libxl-link-fix.patch
- Rework SUSE patches for the various init scripts
Dropped use-init-script-redhat.patch and added
libvirtd-init-script.patch, libvirt-guests-init-script.patch,
and virtlockd-init-script.patch
- Drop upstream patches: 371ddc98-xen-sysctl-9.patch,
416eca18-xenstore-header-fix.patch,
f644361b-virCommand-env.patch, 2b32735a-virCommand-env.patch,
9785f2b6-fix-xen-sysctl9.patch
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=238
2013-01-07 19:44:26 +01:00
|
|
|
timeout=$(($timeout - 1))
|
|
|
|
if [ $timeout -le 0 ]; then
|
|
|
|
eval_gettext "Timeout expired while shutting down domains"; echo
|
|
|
|
- RETVAL=1
|
|
|
|
+ rc_failed 1
|
|
|
|
return
|
|
|
|
fi
|
|
|
|
else
|
2013-04-02 23:49:11 +02:00
|
|
|
@@ -406,7 +432,7 @@ stop() {
|
- Update to libvirt 1.0.1
- Introduce virtlockd daemon
- parallels: add disk and network device support
- Add virDomainSendProcessSignal API
- Introduce virDomainFSTrim() public API
- add fuse support for libvirt lxc
- Add Gluster protocol as supported network disk backend
- various snapshot improvements
- Add upstream patches to fix bugs in 1.0.1
66ff2ddc-virtlockd-systemd-file-perms.patch,
462a6962-script-fixes1.patch, cb854b8f-script-fixes2.patch,
5ec4b22b-script-fixes3.patch, a1fd56cb-script-fixes4.patch,
68e7bc45-libxl-link-fix.patch
- Rework SUSE patches for the various init scripts
Dropped use-init-script-redhat.patch and added
libvirtd-init-script.patch, libvirt-guests-init-script.patch,
and virtlockd-init-script.patch
- Drop upstream patches: 371ddc98-xen-sysctl-9.patch,
416eca18-xenstore-header-fix.patch,
f644361b-virCommand-env.patch, 2b32735a-virCommand-env.patch,
9785f2b6-fix-xen-sysctl9.patch
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=238
2013-01-07 19:44:26 +01:00
|
|
|
if [ $SHUTDOWN_TIMEOUT -lt 0 ]; then
|
|
|
|
gettext "SHUTDOWN_TIMEOUT must be equal or greater than 0"
|
|
|
|
echo
|
|
|
|
- RETVAL=6
|
|
|
|
+ rc_failed 6
|
|
|
|
return
|
|
|
|
fi
|
|
|
|
fi
|
2013-04-02 23:49:11 +02:00
|
|
|
@@ -454,14 +480,14 @@ stop() {
|
- Update to libvirt 1.0.1
- Introduce virtlockd daemon
- parallels: add disk and network device support
- Add virDomainSendProcessSignal API
- Introduce virDomainFSTrim() public API
- add fuse support for libvirt lxc
- Add Gluster protocol as supported network disk backend
- various snapshot improvements
- Add upstream patches to fix bugs in 1.0.1
66ff2ddc-virtlockd-systemd-file-perms.patch,
462a6962-script-fixes1.patch, cb854b8f-script-fixes2.patch,
5ec4b22b-script-fixes3.patch, a1fd56cb-script-fixes4.patch,
68e7bc45-libxl-link-fix.patch
- Rework SUSE patches for the various init scripts
Dropped use-init-script-redhat.patch and added
libvirtd-init-script.patch, libvirt-guests-init-script.patch,
and virtlockd-init-script.patch
- Drop upstream patches: 371ddc98-xen-sysctl-9.patch,
416eca18-xenstore-header-fix.patch,
f644361b-virCommand-env.patch, 2b32735a-virCommand-env.patch,
9785f2b6-fix-xen-sysctl9.patch
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=238
2013-01-07 19:44:26 +01:00
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
eval_gettext "Failed to list persistent guests on \$uri"
|
|
|
|
echo
|
|
|
|
- RETVAL=1
|
|
|
|
+ rc_failed 1
|
|
|
|
set +f
|
|
|
|
return
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
gettext "Failed to list transient guests"
|
|
|
|
echo
|
|
|
|
- RETVAL=1
|
|
|
|
+ rc_failed 1
|
|
|
|
set +f
|
|
|
|
return
|
|
|
|
fi
|
2013-04-02 23:49:11 +02:00
|
|
|
@@ -520,14 +546,13 @@ gueststatus() {
|
- Update to libvirt 1.0.1
- Introduce virtlockd daemon
- parallels: add disk and network device support
- Add virDomainSendProcessSignal API
- Introduce virDomainFSTrim() public API
- add fuse support for libvirt lxc
- Add Gluster protocol as supported network disk backend
- various snapshot improvements
- Add upstream patches to fix bugs in 1.0.1
66ff2ddc-virtlockd-systemd-file-perms.patch,
462a6962-script-fixes1.patch, cb854b8f-script-fixes2.patch,
5ec4b22b-script-fixes3.patch, a1fd56cb-script-fixes4.patch,
68e7bc45-libxl-link-fix.patch
- Rework SUSE patches for the various init scripts
Dropped use-init-script-redhat.patch and added
libvirtd-init-script.patch, libvirt-guests-init-script.patch,
and virtlockd-init-script.patch
- Drop upstream patches: 371ddc98-xen-sysctl-9.patch,
416eca18-xenstore-header-fix.patch,
f644361b-virCommand-env.patch, 2b32735a-virCommand-env.patch,
9785f2b6-fix-xen-sysctl9.patch
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=238
2013-01-07 19:44:26 +01:00
|
|
|
rh_status() {
|
|
|
|
if [ -f "$LISTFILE" ]; then
|
|
|
|
gettext "stopped, with saved guests"; echo
|
|
|
|
- RETVAL=3
|
|
|
|
+ rc_failed 3
|
|
|
|
else
|
|
|
|
if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
|
|
|
|
gettext "started"; echo
|
|
|
|
else
|
|
|
|
gettext "stopped, with no saved guests"; echo
|
|
|
|
fi
|
|
|
|
- RETVAL=0
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2013-04-02 23:49:11 +02:00
|
|
|
@@ -571,4 +596,4 @@ case "$1" in
|
- Update to libvirt 1.0.1
- Introduce virtlockd daemon
- parallels: add disk and network device support
- Add virDomainSendProcessSignal API
- Introduce virDomainFSTrim() public API
- add fuse support for libvirt lxc
- Add Gluster protocol as supported network disk backend
- various snapshot improvements
- Add upstream patches to fix bugs in 1.0.1
66ff2ddc-virtlockd-systemd-file-perms.patch,
462a6962-script-fixes1.patch, cb854b8f-script-fixes2.patch,
5ec4b22b-script-fixes3.patch, a1fd56cb-script-fixes4.patch,
68e7bc45-libxl-link-fix.patch
- Rework SUSE patches for the various init scripts
Dropped use-init-script-redhat.patch and added
libvirtd-init-script.patch, libvirt-guests-init-script.patch,
and virtlockd-init-script.patch
- Drop upstream patches: 371ddc98-xen-sysctl-9.patch,
416eca18-xenstore-header-fix.patch,
f644361b-virCommand-env.patch, 2b32735a-virCommand-env.patch,
9785f2b6-fix-xen-sysctl9.patch
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=238
2013-01-07 19:44:26 +01:00
|
|
|
usage
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
-exit $RETVAL
|
|
|
|
+rc_exit
|
2013-04-02 23:49:11 +02:00
|
|
|
Index: libvirt-1.0.4/tools/libvirt-guests.sysconf
|
- Update to libvirt 1.0.1
- Introduce virtlockd daemon
- parallels: add disk and network device support
- Add virDomainSendProcessSignal API
- Introduce virDomainFSTrim() public API
- add fuse support for libvirt lxc
- Add Gluster protocol as supported network disk backend
- various snapshot improvements
- Add upstream patches to fix bugs in 1.0.1
66ff2ddc-virtlockd-systemd-file-perms.patch,
462a6962-script-fixes1.patch, cb854b8f-script-fixes2.patch,
5ec4b22b-script-fixes3.patch, a1fd56cb-script-fixes4.patch,
68e7bc45-libxl-link-fix.patch
- Rework SUSE patches for the various init scripts
Dropped use-init-script-redhat.patch and added
libvirtd-init-script.patch, libvirt-guests-init-script.patch,
and virtlockd-init-script.patch
- Drop upstream patches: 371ddc98-xen-sysctl-9.patch,
416eca18-xenstore-header-fix.patch,
f644361b-virCommand-env.patch, 2b32735a-virCommand-env.patch,
9785f2b6-fix-xen-sysctl9.patch
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=238
2013-01-07 19:44:26 +01:00
|
|
|
===================================================================
|
2013-04-02 23:49:11 +02:00
|
|
|
--- libvirt-1.0.4.orig/tools/libvirt-guests.sysconf
|
|
|
|
+++ libvirt-1.0.4/tools/libvirt-guests.sysconf
|
- Update to libvirt 1.0.1
- Introduce virtlockd daemon
- parallels: add disk and network device support
- Add virDomainSendProcessSignal API
- Introduce virDomainFSTrim() public API
- add fuse support for libvirt lxc
- Add Gluster protocol as supported network disk backend
- various snapshot improvements
- Add upstream patches to fix bugs in 1.0.1
66ff2ddc-virtlockd-systemd-file-perms.patch,
462a6962-script-fixes1.patch, cb854b8f-script-fixes2.patch,
5ec4b22b-script-fixes3.patch, a1fd56cb-script-fixes4.patch,
68e7bc45-libxl-link-fix.patch
- Rework SUSE patches for the various init scripts
Dropped use-init-script-redhat.patch and added
libvirtd-init-script.patch, libvirt-guests-init-script.patch,
and virtlockd-init-script.patch
- Drop upstream patches: 371ddc98-xen-sysctl-9.patch,
416eca18-xenstore-header-fix.patch,
f644361b-virCommand-env.patch, 2b32735a-virCommand-env.patch,
9785f2b6-fix-xen-sysctl9.patch
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=238
2013-01-07 19:44:26 +01:00
|
|
|
@@ -1,19 +1,29 @@
|
|
|
|
+## Path: System/Virtualization/libvirt-guests
|
|
|
|
+
|
|
|
|
+## Type: string
|
|
|
|
+## Default: default
|
|
|
|
# URIs to check for running guests
|
|
|
|
# example: URIS='default xen:/// vbox+tcp://host/system lxc:///'
|
|
|
|
-#URIS=default
|
|
|
|
+URIS=default
|
|
|
|
|
|
|
|
+## Type: string
|
|
|
|
+## Default: start
|
|
|
|
# action taken on host boot
|
|
|
|
# - start all guests which were running on shutdown are started on boot
|
|
|
|
# regardless on their autostart settings
|
|
|
|
# - ignore libvirt-guests init script won't start any guest on boot, however,
|
|
|
|
# guests marked as autostart will still be automatically started by
|
|
|
|
# libvirtd
|
|
|
|
-#ON_BOOT=start
|
|
|
|
+ON_BOOT=start
|
|
|
|
|
|
|
|
+## Type: integer
|
|
|
|
+## Default: 0
|
|
|
|
# Number of seconds to wait between each guest start. Set to 0 to allow
|
|
|
|
# parallel startup.
|
|
|
|
-#START_DELAY=0
|
|
|
|
+START_DELAY=0
|
|
|
|
|
|
|
|
+## Type: string
|
|
|
|
+## Default: suspend
|
|
|
|
# action taken on host shutdown
|
|
|
|
# - suspend all running guests are suspended using virsh managedsave
|
|
|
|
# - shutdown all running guests are asked to shutdown. Please be careful with
|
|
|
|
@@ -22,12 +32,16 @@
|
|
|
|
# which just needs a long time to shutdown. When setting
|
|
|
|
# ON_SHUTDOWN=shutdown, you must also set SHUTDOWN_TIMEOUT to a
|
|
|
|
# value suitable for your guests.
|
|
|
|
-#ON_SHUTDOWN=suspend
|
|
|
|
+ON_SHUTDOWN=suspend
|
|
|
|
|
|
|
|
+## Type: integer
|
|
|
|
+## Default: 0
|
|
|
|
# If set to non-zero, shutdown will suspend guests concurrently. Number of
|
|
|
|
# guests on shutdown at any time will not exceed number set in this variable.
|
|
|
|
-#PARALLEL_SHUTDOWN=0
|
|
|
|
+PARALLEL_SHUTDOWN=0
|
|
|
|
|
|
|
|
+## Type: integer
|
|
|
|
+## Default: 300
|
|
|
|
# Number of seconds we're willing to wait for a guest to shut down. If parallel
|
|
|
|
# shutdown is enabled, this timeout applies as a timeout for shutting down all
|
|
|
|
# guests on a single URI defined in the variable URIS. If this is 0, then there
|
|
|
|
@@ -35,7 +49,9 @@
|
|
|
|
# request). The default value is 300 seconds (5 minutes).
|
|
|
|
#SHUTDOWN_TIMEOUT=300
|
|
|
|
|
|
|
|
+## Type: integer
|
|
|
|
+## Default: 0
|
|
|
|
# If non-zero, try to bypass the file system cache when saving and
|
|
|
|
# restoring guests, even though this may give slower operation for
|
|
|
|
# some file systems.
|
|
|
|
-#BYPASS_CACHE=0
|
|
|
|
+BYPASS_CACHE=0
|