]> xenbits.xensource.com Git - xen.git/commitdiff
oxenstored: honour XEN_RUN_DIR
authorWei Liu <wei.liu2@citrix.com>
Mon, 11 Jul 2016 17:28:09 +0000 (18:28 +0100)
committerWei Liu <wei.liu2@citrix.com>
Wed, 20 Jul 2016 15:08:28 +0000 (16:08 +0100)
Move default the pid file under XEN_RUN_DIR. Note that it changes the
location from /var/run to /var/run/xen.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: David Scott <dave@recoil.org>
tools/ocaml/xenstored/xenstored.ml

index 30570eda745d8271568662835c07ec0c9feba581..7ea40262733bb017daf9cf2a953190e80a3f6382 100644 (file)
@@ -81,7 +81,7 @@ let config_filename cf =
        | Some name -> name
        | None      -> Define.default_config_dir ^ "/oxenstored.conf"
 
-let default_pidfile = "/var/run/xenstored.pid"
+let default_pidfile = Paths.xen_run_dir ^ "/xenstored.pid"
 
 let ring_scan_interval = ref 20