On Mon, Dec 03, 2012 at 03:35:05PM +0100, Robert Hofer wrote:
> so check_running is also called with the name
> The output of "xm domid <name>" for a running domain is the ID of
> the domain and "None" for a known, but not runing domain. The return
> code for both cases is 0. So the function always returns 0. With xen
> 3 and no xend, this code was correct.

With xl and 4.1:
| # xen domid test; echo $?
| Can't get domid of domain name 'test', maybe this domain does not exist.
| 1

With xm and 4.1:
| # xen domid test; echo $?
| Error: Domain 'test' does not exist.
| 3

So this command fails for not existing domains.

> I suggest to parse the output of "xm list -l <name> " for  "(status 0)".

Nope, this does not work.

Bastian

-- 
It is a human characteristic to love little animals, especially if
they're attractive in some way.
                -- McCoy, "The Trouble with Tribbles", stardate 4525.6


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to