Skip to content

Commit

Permalink
add log message to indicate successful start
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Feb 7, 2025
1 parent 7b95f45 commit 78a75df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion features/steps/naemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def naemon_started_and_ready(context, timeout_s):
# When we see this line in the log, we'll wait 1 more second and
# then Naemon should be ready, with signal handlers setup so that a
# test can SIGTERM it.
if 'Successfully launched command file worker with pid' in log:
if 'Naemon successfully initialized' in log:
ready = True
time.sleep(1)
break
Expand Down
2 changes: 2 additions & 0 deletions src/naemon/naemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,8 @@ int main(int argc, char **argv)
}
}

nm_log(NSLOG_INFO_MESSAGE, "Naemon successfully initialized (PID=%d)\n", (int)getpid());

timing_point("Entering event execution loop\n");
/***** start monitoring all services *****/
/* (doesn't return until a restart or shutdown signal is encountered) */
Expand Down

0 comments on commit 78a75df

Please sign in to comment.