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-users

Re: [Xen-users] Supported/normal way of creating domains at start-up?

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Supported/normal way of creating domains at start-up?
From: Matus Harvan <mharvan@xxxxxxxxxxxxxxxxxx>
Date: Sun, 16 Oct 2005 20:31:48 +0200
Delivery-date: Mon, 17 Oct 2005 08:50:56 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <Pine.LNX.4.44.0510161123060.30660-100000@xxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <Pine.LNX.4.44.0510161123060.30660-100000@xxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Debian Thunderbird 1.0.2 (X11/20050602)
On 2005-10-16 20:24, Tom Brown wrote:
> that covers startup, but is there anything in xen to send a signal to init
> in the domUs to request a shutdown?

from /etc/init.d/xendomains:
stop()
{
    # NB. this shuts down ALL Xen domains (politely), not just the ones in
    # AUTODIR/*
    # This is because it's easier to do ;-) but arguably if this script
is run
    # on system shutdown then it's also the right thing to do.

    echo -n $"Shutting down all Xen domains:"

    xm shutdown --all --wait --halt

    RETVAL=$?

    [ $RETVAL -eq 0 ] && rm -f $LOCKFILE

    on_fn_exit
}

So all domUs are shutdown when you call /etc/init.d/xendomains stop.
Sure, you could change it to shutdown only domUs in /etc/xen/auto/.

Matus

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