Package: watchdog Version: 5.2.4-4
When using the watchdog daemon with the verbose switch (-v), one would expect it to report once every logtick a with message "still alive". It does that only one time, however, and fails to report in after that. This is due to a problem in watchdog.c, where the ticker gets reset twice: first to the value of logtick, and then to 0. The logging condition (--ticker==0) will never evaluate to true again after that. I suggest applying the following change to watchdog.c, which corrects this behaviour: --- watchdog.c.orig Tue Jul 8 14:34:19 2003 +++ watchdog.c Tue Sep 27 20:07:52 2005 @@ -838,7 +838,7 @@ /* do verbose logging */ if (verbose) { count += logtick; - ticker = 0; + /* (bug: ticker == logtick and must not be reset here.) ticker = 0; */ syslog(LOG_INFO, "still alive after %ld seconds = %ld interval(s)", count * tint, count); } #endif /* USE_SYSLOG */ We're using the watchdog package on Sarge and have ported it to Red Hat Linux, too. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]