- Moved backend start message to after the clixon socket ops: create/bind/listen

This commit is contained in:
Olof hagsand 2022-02-26 10:23:10 +01:00
parent 86ebe9f2fb
commit cf2de375f7
3 changed files with 42 additions and 3 deletions

View file

@ -1007,7 +1007,6 @@ main(int argc,
if ((pid = pidfile_write(pidfile)) < 0)
goto done;
clicon_log(LOG_NOTICE, "%s: %u Started", __PROGRAM__, getpid());
if (set_signal(SIGTERM, backend_sig_term, NULL) < 0){
clicon_err(OE_DAEMON, errno, "Setting signal");
goto done;
@ -1048,6 +1047,8 @@ main(int argc,
#endif
if (stream_timer_setup(0, h) < 0)
goto done;
/* Just before event-loop, after socket bind/listen */
clicon_log(LOG_NOTICE, "%s: %u Started", __PROGRAM__, getpid());
if (clixon_event_loop(h) < 0)
goto done;
ok: