Sorry for top posing.
This is https://bugzilla.redhat.com/show_bug.cgi?id=695653. Was filed first in
Bugzilla because the mailing list wasn't accessible yesterday.
ÐÐ 13.04.2011 11:15, Alexander Todorov ÐÐÐÐÑÐ:
---
tools/libvirt-guests.init.sh | 2 ++
tools/libvirt-guests.sysconf | 3 +++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/tools/libvirt-guests.init.sh b/tools/libvirt-guests.init.sh
index f247e5e..b462ea8 100644
--- a/tools/libvirt-guests.init.sh
+++ b/tools/libvirt-guests.init.sh
@@ -42,6 +42,7 @@ URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0
+BOOT_TIMEOUT=0
test -f "$sysconfdir"/sysconfig/libvirt-guests&&
. "$sysconfdir"/sysconfig/libvirt-guests
@@ -166,6 +167,7 @@ start() {
gettext "already active"; echo
else
retval run_virsh "$uri" start "$name">/dev/null&& \
+ sleep $BOOT_TIMEOUT&& \
gettext "done"; echo
fi
fi
diff --git a/tools/libvirt-guests.sysconf b/tools/libvirt-guests.sysconf
index cd58728..e970a00 100644
--- a/tools/libvirt-guests.sysconf
+++ b/tools/libvirt-guests.sysconf
@@ -10,6 +10,9 @@
# libvirtd
#ON_BOOT=start
+# number of seconds to wait before starting the next guest
+#BOOT_TIMEOUT=0
+
# 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
--
ÐÐÐ. ÐÐÐÐÑÐÐÐÑÑ ÐÐÐÐÑÐÐ - RHCE, RHCVA, RHCI
ÐÑÐÐÑÐÐÐ ÐÐÑÐÐÐÐÐÐÐ ÐÑÐÐÐÑÐÑ ÐÐÐÐ - Red Hat Ready Business Partner
www.otb.bg/sumu
--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list