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-unstable] xend NetBSD init script: fixed problem wh

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xend NetBSD init script: fixed problem when restarting xend
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Mon, 18 Jul 2011 23:44:08 +0100
Delivery-date: Mon, 18 Jul 2011 15:44:14 -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 1310996311 -3600
# Node ID e298ce67777eb45187d6581a0c51c2dbe7161000
# Parent  31dd84463eece20bd01c7aee22b52a0c06c67545
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>
---


diff -r 31dd84463eec -r e298ce67777e tools/hotplug/NetBSD/rc.d/xend
--- a/tools/hotplug/NetBSD/rc.d/xend    Sat Jul 16 09:25:48 2011 +0100
+++ b/tools/hotplug/NetBSD/rc.d/xend    Mon Jul 18 14:38:31 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-unstable] xend NetBSD init script: fixed problem when restarting xend, Xen patchbot-unstable <=