SHA256
1
0
forked from pool/xen

Updating link to change in openSUSE:Factory/xen revision 88.0

OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=e3fceb77b1b54518068f30a555f7535a
This commit is contained in:
OBS User buildservice-autocommit
2010-04-18 22:21:06 +00:00
committed by Git OBS Bridge
parent ce2ee9452b
commit 955345f274
17 changed files with 574 additions and 161 deletions

View File

@@ -8,7 +8,7 @@
### BEGIN INIT INFO
# Provides: xendomains
# Required-Start: $syslog $remote_fs xend
# Should-Start: iscsi o2cb ocfs2
# Should-Start: iscsi o2cb ocfs2 openais
# Required-Stop: $syslog $remote_fs xend
# Should-Stop: iscsi
# Default-Start: 3 5
@@ -89,7 +89,11 @@ dir_contains_something()
get_name_from_cfg()
{
NM=`grep '^name[ ]*=' "$1" | sed -e 's/^name[ ]*=[ ]*['\''"]\([^'\''"]*\)['\''"].*$/\1/'`
if grep -q "^name" "$1";then
NM=`grep '^name[ ]*=' "$1" | sed -e 's/^name[ ]*=[ ]*['\''"]\([^'\''"]*\)['\''"].*$/\1/'`
elif grep -q "(name " "$1";then
NM=`grep '(name ' "$1" | sed -e 's/^ *//' | cut -d " " -f 2 | sed -e 's/)//'`
fi
}
running_auto_names()
@@ -179,12 +183,16 @@ start()
if is_cfg_running "$dom"; then
rc_status -s
else
xm create --quiet --defconfig "$dom"
if grep -q "^name" "$dom";then
xm create --quiet --defconfig "$dom"
elif grep -q "(name .*" "$dom";then
xm create --quiet --config "$dom"
fi
if [ $? -ne 0 ]; then
rc_failed
rc_failed
else
usleep $XENDOMAINS_CREATE_USLEEP
rc_reset
usleep $XENDOMAINS_CREATE_USLEEP
rc_reset
fi
rc_status -v
fi