WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Bug in xendomains script?

To: Xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Bug in xendomains script?
From: Min Lee <min.lee@xxxxxxxxxx>
Date: Fri, 18 Jun 2010 10:13:52 -0400
Cc:
Delivery-date: Fri, 18 Jun 2010 07:15:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4
Hi, I think this in xendomains script might be a bug.
It seems like it checks errors from 'xm list', but it didn't work in my case. 'xm list' works fine, but it exits the script.

if `xm list &> /dev/null`
then
         exit 0
fi

So, I've changed it to..

if [ "`xm list &> /dev/null`" != "" ]; then
        exit 0
fi

Now it's working... seems like a small bug..
thanks
Min

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Bug in xendomains script?, Min Lee <=