|
|
|
|
|
|
|
|
|
|
xen-users
[Xen-users] xendomains init error
Hi all, i'm using xen3.4 from src and i see an error in xendomains init script, it not save all machines at stop (e.g /etc/init.d/xendomains stop) this is because an error with the compare. I just make it work with some change.
This is the patch.
--- xendomains.a 2009-08-04 10:19:43.000000000 -0300 +++ xendomains.b 2009-08-04 10:21:47.000000000 -0300 @@ -182,11 +182,11 @@ parseln() { - if [[ "$1" =~ "\(domain" ]]; then
+ if [[ "$1" =~ "(domain" ]]; then name=;id= - else if [[ "$1" =~ "\(name" ]]; then + else if [[ "$1" =~ "(name" ]]; then name=$(echo $1 | sed -e 's/^.*(name \(.*\))$/\1/')
- else if [[ "$1" =~ "\(domid" ]]; then + else if [[ "$1" =~ "(domid" ]]; then id=$(echo $1 | sed -e 's/^.*(domid \(.*\))$/\1/') fi; fi; fi
Thanks.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-users] xendomains init error,
Pepo Viola <=
|
|
|
|
|