Skip to content

Commit

Permalink
Display log greeting before parsing .conf file
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
  • Loading branch information
troglobit committed Dec 17, 2023
1 parent c1bf111 commit 5af25c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/watchdogd.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,12 @@ int main(int argc, char *argv[])
setlogmask(LOG_UPTO(loglevel));
openlog(prognm, log_opts, LOG_DAEMON);

/* Read /etc/watchdogd.conf if it exists */
conf_parse_file(&ctx, opt_config);

/* Hello world ... */
LOG("%s v%s %s ...", prognm, PACKAGE_VERSION, wdt_testmode() ? "test mode" : "starting");

/* Read /etc/watchdogd.conf if it exists */
conf_parse_file(&ctx, opt_config);

/* Setup callbacks for SIGUSR1 and, optionally, exit magic on SIGINT/SIGTERM */
setup_signals(&ctx);

Expand Down

0 comments on commit 5af25c5

Please sign in to comment.