From: Wei Liu Date: Mon, 11 Jul 2016 17:28:03 +0000 (+0100) Subject: xenconsoled: honour XEN_RUN_DIR X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~724 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=51a0ae4fd5ce6fc46d1cf298da974ae80dfb8c70;p=xen.git xenconsoled: honour XEN_RUN_DIR 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 Acked-by: Ian Jackson --- diff --git a/tools/console/daemon/main.c b/tools/console/daemon/main.c index 20e35131e4..806d2fd611 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())