From: Wei Liu Date: Mon, 11 Jul 2016 17:28:09 +0000 (+0100) Subject: oxenstored: honour XEN_RUN_DIR X-Git-Tag: 4.8.0-rc1~511 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=df592188078abc04a64b6bbee991bb5327f67b46;p=xen.git oxenstored: honour XEN_RUN_DIR 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 Acked-by: David Scott --- diff --git a/tools/ocaml/xenstored/xenstored.ml b/tools/ocaml/xenstored/xenstored.ml index 30570eda74..7ea4026273 100644 --- a/tools/ocaml/xenstored/xenstored.ml +++ b/tools/ocaml/xenstored/xenstored.ml @@ -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