diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-05-16 14:47:00 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-05-16 14:54:57 +0000 |
commit | ef80eb1f042d2bfe8d0588e6d248b42cb1b33552 (patch) | |
tree | c2809a81f56e5bb642570bea9f578f837e730323 /main/xen/xendomains.initd | |
parent | 6429f9b3f3c8834905ffe273f6b4b104958705ca (diff) | |
download | aports-ef80eb1f042d2bfe8d0588e6d248b42cb1b33552.tar.bz2 aports-ef80eb1f042d2bfe8d0588e6d248b42cb1b33552.tar.xz |
main/xen: sleep a bit when starting up xen domains
fixes #1850
Diffstat (limited to 'main/xen/xendomains.initd')
-rw-r--r-- | main/xen/xendomains.initd | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/main/xen/xendomains.initd b/main/xen/xendomains.initd index ff6fcdb138..794a78697f 100644 --- a/main/xen/xendomains.initd +++ b/main/xen/xendomains.initd @@ -68,9 +68,15 @@ start() { fi fi # Create all domains with config files in AUTODIR. + want_usleep= for dom in $(ls "${AUTODIR:=/etc/xen/auto}/"* 2>/dev/null | sort); do name=$(get_domname ${dom}) if ! is_running ${name} ; then + if [ -n "$want_usleep" ]; then + usleep ${XENDOMAINS_CREATE_USLEEP:=5000000} + else + want_usleep=1 + fi ebegin " Starting domain ${name}" if using_screen ; then ${screen_cmd} screen -t ${name} xl create ${dom} -c |