[ovs-dev] [PATCH] ovn-northd: fix monitor process naming

Lance Richardson lrichard at redhat.com
Wed Dec 14 16:16:53 UTC 2016


Currently the ovn-northd monitor process and the ovn-northd process
have the same name, e.g. ps -ef | grep northd shows (edited for space):

    ... ovn-northd --detach --monitor --log-file=ovn-northd.log --pidfile
    ... ovn-northd --detach --monitor --log-file=ovn-northd.log --pidfile

With the call to ovs_cmdl_proctitle_init() added, we have:

    ... ovn-northd: monitoring pid 15662 (healthy)
    ... ovn-northd --detach --monitor --log-file=ovn-northd.log --pidfile

Signed-off-by: Lance Richardson <lrichard at redhat.com>
---
 ovn/northd/ovn-northd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ovn/northd/ovn-northd.c b/ovn/northd/ovn-northd.c
index c56ac79..a28327b 100644
--- a/ovn/northd/ovn-northd.c
+++ b/ovn/northd/ovn-northd.c
@@ -4913,6 +4913,7 @@ main(int argc, char *argv[])
     bool exiting;
 
     fatal_ignore_sigpipe();
+    ovs_cmdl_proctitle_init(argc, argv);
     set_program_name(argv[0]);
     service_start(&argc, &argv);
     parse_options(argc, argv);
-- 
2.5.5



More information about the dev mailing list