From a5bbe3fb867fe9c83b8027c6ee1b01d470b61e5f Mon Sep 17 00:00:00 2001 From: David Teigland Date: Jan 11 2024 22:08:05 +0000 Subject: sanlock: include startup message in syslog --- diff --git a/src/main.c b/src/main.c index 59e96a0..403e358 100644 --- a/src/main.c +++ b/src/main.c @@ -1821,12 +1821,17 @@ static int do_daemon(void) uname(&nodename); - if (com.io_timeout != DEFAULT_IO_TIMEOUT || com.watchdog_fire_timeout != DEFAULT_WATCHDOG_FIRE_TIMEOUT) + if (com.io_timeout != DEFAULT_IO_TIMEOUT || com.watchdog_fire_timeout != DEFAULT_WATCHDOG_FIRE_TIMEOUT) { log_warn("sanlock daemon started %s host %s (%s) io_timeout %u watchdog_fire_timeout %u", VERSION, our_host_name_global, nodename.nodename, com.io_timeout, com.watchdog_fire_timeout); - else + syslog(LOG_INFO, "sanlock daemon started %s host %s (%s) io_timeout %u watchdog_fire_timeout %u", + VERSION, our_host_name_global, nodename.nodename, com.io_timeout, com.watchdog_fire_timeout); + } else { log_warn("sanlock daemon started %s host %s (%s)", VERSION, our_host_name_global, nodename.nodename); + syslog(LOG_INFO, "sanlock daemon started %s host %s (%s)", + VERSION, our_host_name_global, nodename.nodename); + } setup_priority();