mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
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>
25 lines
425 B
Bash
25 lines
425 B
Bash
#!/bin/sh
|
|
#
|
|
# PROVIDE: xend
|
|
# REQUIRE: xencommons
|
|
|
|
. /etc/rc.subr
|
|
|
|
DIR=$(dirname "$0")
|
|
. "${DIR}/xen-hotplugpath.sh"
|
|
|
|
LD_LIBRARY_PATH="${LIBDIR}"
|
|
export LD_LIBRARY_PATH PYTHONPATH
|
|
PATH="${PATH}:${SBINDIR}"
|
|
export PATH
|
|
|
|
name="xend"
|
|
rcvar=$name
|
|
command="${SBINDIR}/xend"
|
|
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"
|