aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoger Pau Monne <roger.pau@entel.upc.edu>2011-07-21 14:42:23 +0100
committerRoger Pau Monne <roger.pau@entel.upc.edu>2011-07-21 14:42:23 +0100
commitbb0053cce42d3846b9dbce5f8156f77c1a2cbd5c (patch)
treeb422b91a1def749d01bd7a481c386c59f6e134d3
parenta731ec8ebba2a8dc534c7b23a01de1d7fe34fa42 (diff)
downloadxen-bb0053cce42d3846b9dbce5f8156f77c1a2cbd5c.tar.gz
xen-bb0053cce42d3846b9dbce5f8156f77c1a2cbd5c.tar.bz2
xen-bb0053cce42d3846b9dbce5f8156f77c1a2cbd5c.zip
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@entel.upc.edu> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com> xen-unstable changeset: 23712:e298ce67777e xen-unstable date: Mon Jul 18 14:38:31 2011 +0100
-rw-r--r--tools/hotplug/NetBSD/rc.d/xend7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/hotplug/NetBSD/rc.d/xend b/tools/hotplug/NetBSD/rc.d/xend
index c44f53bf65..ead9ee0390 100644
--- a/tools/hotplug/NetBSD/rc.d/xend
+++ b/tools/hotplug/NetBSD/rc.d/xend
@@ -10,12 +10,15 @@ DIR=$(dirname "$0")
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"