Skip to content

Commit

Permalink
watchdogd: drop startup message, leaks to console
Browse files Browse the repository at this point in the history
We use LOG_CONS to ensure log messages reach the operator, but since
watchdogd starts very early this means non-critical messages like the
initial greeting leaks to console because syslogd has not yet started.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
  • Loading branch information
troglobit committed Sep 15, 2023
1 parent a88eb82 commit 1ee6c9f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ static int init(char *progname, char *devnode)
signal(SIGPWR, sighandler);

openlog(&progname[1], LOG_CONS | LOG_PID, LOG_DAEMON);
syslog(LOG_INFO, "Finit v%s watchdog %s starting ...", VERSION, devnode);

fd = open(devnode, O_WRONLY);
if (fd == -1)
Expand Down

0 comments on commit 1ee6c9f

Please sign in to comment.