]> xenbits.xensource.com Git - people/iwj/xen.git/commitdiff
init/FreeBSD: set correct PATH for xl devd
authorRoger Pau Monne <roger.pau@citrix.com>
Mon, 19 Dec 2016 15:02:01 +0000 (15:02 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 4 Jan 2017 17:06:36 +0000 (17:06 +0000)
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é <roger.pau@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
(cherry picked from commit 1d52073334d7615934fe804bc656b7aab0e92ebd)

tools/hotplug/FreeBSD/rc.d/xendriverdomain.in

index 8ece7c31f66647eee27a5be61de4d756c869dc1d..3917de2b8c687e47977823d9ded01a6a120e08ab 100644 (file)
@@ -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"
 }