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/
Home Products Support Community News


[Xen-tools] Re: [PATCH] Make daemons more robust

To: Anthony Liguori <aliguori@xxxxxxxxxx>
Subject: [Xen-tools] Re: [PATCH] Make daemons more robust
From: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>
Date: Wed, 10 Aug 2005 10:53:26 +0100
Cc: Xen Tools <xen-tools@xxxxxxxxxxxxxxxxxxx>, Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Delivery-date: Wed, 10 Aug 2005 09:51:41 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <42F97350.7020704@xxxxxxxxxx>
List-help: <mailto:xen-tools-request@lists.xensource.com?subject=help>
List-id: Xen control tools developers <xen-tools.lists.xensource.com>
List-post: <mailto:xen-tools@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-tools>, <mailto:xen-tools-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-tools>, <mailto:xen-tools-request@lists.xensource.com?subject=unsubscribe>
References: <42F97350.7020704@xxxxxxxxxx>
Sender: xen-tools-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.1i
On Tue, Aug 09, 2005 at 10:24:00PM -0500, Anthony Liguori wrote:
> Rusty and I have been working on making the daemon startup be more 
> robust so we don't have the previous timing issues from daemons 
> depending on other daemons.

Thanks!  I've applied it.  Any reason why we actually need to kill
xcs on xend stop?  I'd much prefer my consoles to stay connected
while I restart xend...


> The following patch fixes the xend start 
> issues (where xenstored comes up after xenconsoled) and the xend restart 
> issues (where xenstored becomes unresponsive or has multiple instances 
> running).  This also fixes the end-user problems of xm console not 
> working or xend [re]start spitting out an infinite loop of error messages.
> The patch implements the following changes:
> 1) make xenconsoled exit gracefully if xcs dies
> 2) daemonize xenstored before binding to xenstored socket
> 3) wait to close stdio in xenstored until we're ready to accept 
> connections (so that PID=`xenstored --output-pid` doesn't return until 
> it's ready to accept connections)
> 4) updates tools/misc/xend for these changes
> Signed-off-by: Anthony Liguori <aliguori@xxxxxxxxxx>
> Signed-off-by: Rusty Russell <rusty@xxxxxxxxxxxxxxxx>
> Regards,
> Anthony Liguori

Xen-tools mailing list

<Prev in Thread] Current Thread [Next in Thread>