From: Wei Liu Date: Thu, 9 Jun 2016 12:57:39 +0000 (+0100) Subject: hotplug/Linux: honour XEN_LOG_DIR X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~974 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a666e1ce865d2e010dae3333b711147a51edbbf3;p=xen.git hotplug/Linux: honour XEN_LOG_DIR Signed-off-by: Wei Liu Reviewed-by: Andrew Cooper Acked-by: Ian Jackson Acked-by: Roger Pau Monné --- diff --git a/tools/hotplug/Linux/init.d/sysconfig.xencommons.in b/tools/hotplug/Linux/init.d/sysconfig.xencommons.in index acc730963a..c27a47688f 100644 --- a/tools/hotplug/Linux/init.d/sysconfig.xencommons.in +++ b/tools/hotplug/Linux/init.d/sysconfig.xencommons.in @@ -24,7 +24,7 @@ ## Default: "" # # Additional commandline arguments to start xenstored, -# like "--trace-file /var/log/xen/xenstored-trace.log" +# like "--trace-file @XEN_LOG_DIR@/xenstored-trace.log" # See "@sbindir@/xenstored --help" for possible options. XENSTORED_ARGS= diff --git a/tools/hotplug/Linux/init.d/xencommons.in b/tools/hotplug/Linux/init.d/xencommons.in index eeac8ab74a..7b69fc254d 100644 --- a/tools/hotplug/Linux/init.d/xencommons.in +++ b/tools/hotplug/Linux/init.d/xencommons.in @@ -66,7 +66,7 @@ do_start () { then test -z "$XENSTORED_ROOTDIR" && XENSTORED_ROOTDIR="@XEN_LIB_STORED@" rm -f "$XENSTORED_ROOTDIR"/tdb* &>/dev/null - test -z "$XENSTORED_TRACE" || XENSTORED_ARGS=" -T /var/log/xen/xenstored-trace.log" + test -z "$XENSTORED_TRACE" || XENSTORED_ARGS=" -T @XEN_LOG_DIR@/xenstored-trace.log" if [ -n "$XENSTORED" ] ; then echo -n Starting $XENSTORED... diff --git a/tools/hotplug/Linux/xen-hotplug-common.sh.in b/tools/hotplug/Linux/xen-hotplug-common.sh.in index d5d0b698ea..8c2cb9e25a 100644 --- a/tools/hotplug/Linux/xen-hotplug-common.sh.in +++ b/tools/hotplug/Linux/xen-hotplug-common.sh.in @@ -20,7 +20,7 @@ dir=$(dirname "$0") . "$dir/xen-script-common.sh" . "$dir/locking.sh" -exec 2>>/var/log/xen/xen-hotplug.log +exec 2>>@XEN_LOG_DIR@/xen-hotplug.log export PATH="${bindir}:${sbindir}:${LIBEXEC_BIN}:/sbin:/bin:/usr/bin:/usr/sbin:$PATH" export LD_LIBRARY_PATH="${libdir}${LD_LIBRARY_PATH+:}$LD_LIBRARY_PATH"