[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] xendomains init error


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Pepo Viola <pepoviola@xxxxxxxxx>
  • Date: Tue, 4 Aug 2009 10:25:19 -0300
  • Delivery-date: Tue, 04 Aug 2009 06:26:01 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=hqtSMihbv0NNYL0QodZPN8ALLbld2LadsBMCfRZMKtRAkLKEs4gunv6O+9ARz6uQw5 b6c47MZgNEo8AqcDWOV8I6JE1gAT01O2sC+AqNma2iqiAnmCqfnOq8Z0B+VeDSBoYOhx wF4SreSfDxnPHrcLv3SoYcXeyURW3dbsNLvlg=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.