tools/hotplug: create XEN_RUN_DIR at runtime
authorOlaf Hering <olaf@aepfle.de>
Mon, 22 Sep 2014 12:59:56 +0000 (14:59 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 23 Sep 2014 09:14:16 +0000 (10:14 +0100)
Create XEN_RUN_DIR instead of hardcoded path because it is a compiletime
setting. Also /var/run might be empty on startup because it is a tmpfs
mount point.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/hotplug/Linux/init.d/xencommons.in.in

index 1d860d94e3b6ed6727101ed0b1ea0b0759e3a92d..be21960236384be885270824b44585931f8345ce 100644 (file)
@@ -60,7 +60,7 @@ do_start () {
        local timeout=30
 
        @LOAD_MODULES@
-       mkdir -p /var/run/xen
+       mkdir -p ${XEN_RUN_DIR}
 
        if ! `${BINDIR}/xenstore-read -s / >/dev/null 2>&1`
        then