[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.