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

[Xen-changelog] [xen-4.1-testing] xend NetBSD init script: fixed problem

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-4.1-testing] xend NetBSD init script: fixed problem when restarting xend
From: Xen patchbot-4.1-testing <patchbot@xxxxxxx>
Date: Thu, 21 Jul 2011 22:33:09 +0100
Delivery-date: Thu, 21 Jul 2011 14:33:48 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Roger Pau Monne <roger.pau@xxxxxxxxxxxxx>
# Date 1311255743 -3600
# Node ID 5199c4f6bfabeaf4b0edb9b02e98d260e515121d
# Parent  6efaee8812b7f4845f649526aa449d3470819845
xend NetBSD init script: fixed problem when restarting xend

When restarting xend, the rc.d script was unable to find the pid of
the running xend, so no process was restarted.

Signed-off-by: Roger Pau Monne <roger.pau@xxxxxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
xen-unstable changeset:   23712:e298ce67777e
xen-unstable date:        Mon Jul 18 14:38:31 2011 +0100
---


diff -r 6efaee8812b7 -r 5199c4f6bfab tools/hotplug/NetBSD/rc.d/xend
--- a/tools/hotplug/NetBSD/rc.d/xend    Thu Jul 21 14:41:54 2011 +0100
+++ b/tools/hotplug/NetBSD/rc.d/xend    Thu Jul 21 14:42:23 2011 +0100
@@ -10,12 +10,15 @@
 
 LD_LIBRARY_PATH="${LIBDIR}"
 export LD_LIBRARY_PATH PYTHONPATH
+PATH="${PATH}:${SBINDIR}"
+export PATH
 
 name="xend"
 rcvar=$name
 command="${SBINDIR}/xend"
-start_cmd="echo Starting ${name}. && PATH=${PATH}:${SBINDIR} ${command} start"
-pidfile="/var/run/xend.pid"
+command_args="start"
+command_interpreter=`head -n 1 ${command} | awk '{ print substr($0,3) }'`
+sig_stop="SIGKILL"
 
 load_rc_config $name
 run_rc_command "$1"

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-4.1-testing] xend NetBSD init script: fixed problem when restarting xend, Xen patchbot-4 . 1-testing <=