Place the PID file under XEN_RUN_DIR by default. Note this change the default location from /var/run to /var/run/xen.
Signed-off-by: Wei Liu <wei.l...@citrix.com> --- Cc: Ian Jackson <ian.jack...@eu.citrix.com> --- tools/console/daemon/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/console/daemon/main.c b/tools/console/daemon/main.c index 20e3513..806d2fd 100644 --- a/tools/console/daemon/main.c +++ b/tools/console/daemon/main.c @@ -193,7 +193,7 @@ int main(int argc, char **argv) increase_fd_limit(); if (!is_interactive) { - daemonize(pidfile ? pidfile : "/var/run/xenconsoled.pid"); + daemonize(pidfile ? pidfile : XEN_RUN_DIR "/xenconsoled.pid"); } if (!xen_setup()) -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel