hotplug/FreeBSD: configure xenstored

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Release-acked-by: Julien Grall <julien.grall@arm.com>
This commit is contained in:
Wei Liu committed 2017-04-20 12:02:59 +01:00
1 parent 904f8957e4
commit f9e2600ea1
1 file changed
+5 -3
+5 -3
View File
@@ -3,6 +3,8 @@
# PROVIDE: xencommons
# REQUIRE: DAEMON
XENSTORED=@XENSTORED@
. /etc/rc.subr
. @XEN_SCRIPT_DIR@/hotplugpath.sh
@@ -37,7 +39,7 @@ xen_startcmd()
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
@@ -49,7 +51,7 @@ xen_startcmd()
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))
@@ -87,7 +89,7 @@ xen_stop()
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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.