On Thu, Aug 12, 2021 at 8:35 AM Ilya Maximets <[email protected]> wrote: > > If process title is not initialized, the monitoring process can not > change it, so the current status of the monitored process is not visible > in the output of 'ps -aux' or other utilities. > > Before: > $ ps -aux | grep nbctl > 2926 ovn-nbctl --detach --monitor --log-file --unixctl=./ovn-nbctl.ctl > 2927 ovn-nbctl --detach --monitor --log-file --unixctl=./ovn-nbctl.ctl > > After: > $ ps -aux | grep nbctl > 2926 ovn-nbctl: monitoring pid 2927 (healthy) > 2927 ovn-nbctl --detach --monitor --log-file --unixctl=./ovn-nbctl.ctl > > Fixes: 58287c369bed ("ovn-nbctl: Initial support for daemon mode.") > Signed-off-by: Ilya Maximets <[email protected]>
Thanks. I applied this patch to the main branch and backported to branch-21.06. Numan > --- > utilities/ovn-dbctl.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/utilities/ovn-dbctl.c b/utilities/ovn-dbctl.c > index 9c3e21915..791caabb2 100644 > --- a/utilities/ovn-dbctl.c > +++ b/utilities/ovn-dbctl.c > @@ -116,6 +116,7 @@ ovn_dbctl_main(int argc, char *argv[], > struct ovsdb_idl *idl; > struct shash local_options; > > + ovs_cmdl_proctitle_init(argc, argv); > ovn_set_program_name(argv[0]); > fatal_ignore_sigpipe(); > vlog_set_levels(NULL, VLF_CONSOLE, VLL_WARN); > -- > 2.31.1 > > _______________________________________________ > dev mailing list > [email protected] > https://mail.openvswitch.org/mailman/listinfo/ovs-dev > _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
