[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen master] xenconsoled: honour XEN_RUN_DIR



commit 51a0ae4fd5ce6fc46d1cf298da974ae80dfb8c70
Author:     Wei Liu <wei.liu2@xxxxxxxxxx>
AuthorDate: Mon Jul 11 18:28:03 2016 +0100
Commit:     Wei Liu <wei.liu2@xxxxxxxxxx>
CommitDate: Wed Jul 20 16:07:10 2016 +0100

    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@xxxxxxxxxx>
    Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 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())
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.