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

Re: [Xen-devel] [PATCH] Fix xend restarting problem on NetBSD

To: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Fix xend restarting problem on NetBSD
From: Roger Pau Monné <roger.pau@xxxxxxxxxxxxx>
Date: Fri, 15 Jul 2011 20:49:19 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 15 Jul 2011 11:50:01 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=2+8uHbcjbmT5MS7VZlfYZ3QhiQsCQRtqDqIplO5xpt8=; b=gJ32+dZ33l49hwsrrvwTSg/CrBMjYwMyBBHCwYVan/lJSy9EH/T4IvgQq3amPuNWGX 6cFn5omq62u04pvapn0X1D7UIE8y8BHaoh7dSyDITZOeBc5pvtu38yWcm3XDjQdr8BK1 3Dzsesps4rHC8cH5UeTBnB+HZsgOjraijXKww=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20000.30270.110596.760564@xxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <CAPLaKK4_fWAQaiX-3Rig04zdV2VYCqQ0ZBGCp0FhZHhvCz=NCQ@xxxxxxxxxxxxxx> <20000.30270.110596.760564@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
While searching for a man page to show you the check_pidfile options
I've found that you can also set a variable with the path to the
interpreter, so no need to expand the script. The only strange thing
is that I have to use SIGKILL to kill xend, SIGTERM seems to do
nothing (also xend spawns two processes, but I guess this is normal).

Attached an updated patch, with a simpler script.

Thanks for making me look at it again, Roger.

2011/7/15 Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>:
> Roger Pau Monné writes ("[Xen-devel] [PATCH] Fix xend restarting problem on 
> NetBSD"):
>> This patch fixes a problem with xend restart on NetBSD
>
> Hi.  Thanks for the patch.  But I think this patch does more than you
> say it does ?
>
> It introduces a new xen_startcmd, xen_stop and xen_status.  Presumably
> these were previously provided by standard NetBSD machinery ?  Why is
> that standard machinery unsuitable for start and status ?
>
>> (the rc.d script was unable to find the pid of the process, so it
>> was not restarted).
>
> Why wasn't the standard NetBSD machinery able to find the pid ?
> How does its approach differ from check_pidfile ?
>
> Sorry if these are all stupid questions.  If you can refer me to some
> documentation about the NetBSD init system I may be able to pretend to
> be less ignorant :-).
>
> Thanks,
> Ian.
>

Attachment: patch-xend-rc
Description: Binary data

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