From: Roger Pau Monne Date: Mon, 19 Dec 2016 15:02:01 +0000 (+0000) Subject: init/FreeBSD: set correct PATH for xl devd X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e7ad85ef7ecd64cb80705d438bc1b041e3605310;p=people%2Fiwj%2Fxen.git init/FreeBSD: set correct PATH for xl devd FreeBSD init scripts don't have /usr/local/{bin/sbin} in it's PATH, which prevents `xl devd` from working properly since hotplug scripts require the set of xenstore cli tools to be in PATH. While there also fix the usage of --pidfile, which according to the xl help doesn't use "=", and add braces around XLDEVD_PIDFILE. Signed-off-by: Roger Pau Monné Acked-by: Wei Liu (cherry picked from commit 1d52073334d7615934fe804bc656b7aab0e92ebd) --- diff --git a/tools/hotplug/FreeBSD/rc.d/xendriverdomain.in b/tools/hotplug/FreeBSD/rc.d/xendriverdomain.in index 8ece7c31f6..3917de2b8c 100644 --- a/tools/hotplug/FreeBSD/rc.d/xendriverdomain.in +++ b/tools/hotplug/FreeBSD/rc.d/xendriverdomain.in @@ -29,7 +29,7 @@ xendriverdomain_startcmd() { printf "Starting xenservices: xl devd." - ${sbindir}/xl devd --pidfile=$XLDEVD_PIDFILE ${XLDEVD_ARGS} + PATH="${bindir}:${sbindir}:$PATH" ${sbindir}/xl devd --pidfile ${XLDEVD_PIDFILE} ${XLDEVD_ARGS} printf "\n" }