diff options
author | Roger Pau Monne <roger.pau@entel.upc.edu> | 2011-07-18 14:38:31 +0100 |
---|---|---|
committer | Roger Pau Monne <roger.pau@entel.upc.edu> | 2011-07-18 14:38:31 +0100 |
commit | 259fa325581a3dd91f16106057d5f9b40007478f (patch) | |
tree | bfa6b43fc8abb926ef4bfe6152a3c0e369ffb6df /tools/hotplug | |
parent | e09331d62685e67092b03f5a3843f88aa80b1df9 (diff) | |
download | xen-259fa325581a3dd91f16106057d5f9b40007478f.tar.gz xen-259fa325581a3dd91f16106057d5f9b40007478f.tar.bz2 xen-259fa325581a3dd91f16106057d5f9b40007478f.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>
Diffstat (limited to 'tools/hotplug')
-rw-r--r-- | tools/hotplug/NetBSD/rc.d/xend | 7 |
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" |