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 <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
Wei Liu committed 2016-07-20 16:07:10 +01:00
1 parent 3e71c27052
commit 51a0ae4fd5
1 file changed
+1 -1
+1 -1
View File
@@ -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())
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.