# PROVIDE: xencommons
# REQUIRE: DAEMON
+XENSTORED=@XENSTORED@
+
. /etc/rc.subr
. @XEN_SCRIPT_DIR@/hotplugpath.sh
local time=0
local timeout=30
- xenstored_pid=$(check_pidfile ${XENSTORED_PIDFILE} ${sbindir}/xenstored)
+ xenstored_pid=$(check_pidfile ${XENSTORED_PIDFILE} ${XENSTORED})
if test -z "$xenstored_pid"; then
printf "Cleaning xenstore database.\n"
if [ -z "${XENSTORED_ROOTDIR}" ]; then
if [ -n "${XENSTORED_TRACE}" ]; then
XENSTORED_ARGS="${XENSTORED_ARGS} -T @XEN_LOG_DIR@/xenstored-trace.log"
fi
- ${sbindir}/xenstored ${XENSTORED_ARGS}
+ ${XENSTORED} ${XENSTORED_ARGS}
while [ $time -lt $timeout ] && ! `${bindir}/xenstore-read -s / >/dev/null 2>&1` ; do
printf "."
time=$(($time+1))
xen_status()
{
- xenstored_pid=$(check_pidfile ${XENSTORED_PIDFILE} ${sbindir}/xenstored)
+ xenstored_pid=$(check_pidfile ${XENSTORED_PIDFILE} ${XENSTORED})
if test -n ${xenstored_pid}; then
pids="$pids $xenstored_pid"
fi