mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
hotplug/Linux: honour XEN_LOG_DIR
Signed-off-by: Wei Liu <wei.liu2@citrix.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Acked-by: Roger Pau Monné <roger.pau@citrix.com>
This commit is contained in:
1 parent
7c64c92a4f
commit
a666e1ce86
3 files changed
+3
-3
No files matched your search
@@ -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=
|
||||
|
||||
|
||||
@@ -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...
|
||||
|
||||
@@ -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"
|
||||
|
||||