mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
hotplug/Linux: honour XEN_RUN_DIR
Store various PID files under XEN_RUN_DIR. Note that this change the default location from /var/run to /var/run/xen. Signed-off-by: Wei Liu <wei.liu2@citrix.com> Acked-by: Roger Pau Monné <roger.pau@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
1 parent
e5be44cda8
commit
56f9010bfa
2 files changed
+4
-4
No files matched your search
@@ -27,8 +27,8 @@ xencommons_config=@CONFIG_DIR@/@CONFIG_LEAF_DIR@
|
||||
|
||||
test -f $xencommons_config/xencommons && . $xencommons_config/xencommons
|
||||
|
||||
XENCONSOLED_PIDFILE=/var/run/xenconsoled.pid
|
||||
QEMU_PIDFILE=/var/run/qemu-dom0.pid
|
||||
XENCONSOLED_PIDFILE=@XEN_RUN_DIR@/xenconsoled.pid
|
||||
QEMU_PIDFILE=@XEN_RUN_DIR@/qemu-dom0.pid
|
||||
shopt -s extglob
|
||||
|
||||
# not running in Xen dom0 or domU
|
||||
@@ -70,7 +70,7 @@ do_start () {
|
||||
|
||||
if [ -n "$XENSTORED" ] ; then
|
||||
echo -n Starting $XENSTORED...
|
||||
$XENSTORED --pid-file /var/run/xenstored.pid $XENSTORED_ARGS
|
||||
$XENSTORED --pid-file @XEN_RUN_DIR@/xenstored.pid $XENSTORED_ARGS
|
||||
else
|
||||
echo "No xenstored found"
|
||||
exit 1
|
||||
|
||||
@@ -24,7 +24,7 @@ xendriverdomain_config=@CONFIG_DIR@/@CONFIG_LEAF_DIR@
|
||||
|
||||
test -f $xendriverdomain_config/xendriverdomain && . $xendriverdomain_config/xendriverdomain
|
||||
|
||||
XLDEVD_PIDFILE=/var/run/xldevd.pid
|
||||
XLDEVD_PIDFILE=@XEN_RUN_DIR@/xldevd.pid
|
||||
|
||||
# not running in Xen dom0 or domU
|
||||
if ! test -d /proc/xen ; then
|
||||
|
||||