6

Here's a line from a linux syslog:

watchdog[2423]: shutting down the system because of error 101

However, after searching online and in man watchdog, I cannot find any discussion or explanation of the error codes. Is there any such thing?

goldilocks
  • 86,451
  • 30
  • 200
  • 258

1 Answers1

5

Yes, per the same manual page:

TEST BINARY
       If the return code of the check binary is not zero watchdog will assume
       an error and reboot the system. A positive exit code is interpreted as
       a system error code (see errno.h for details).

so in this particular case (error 101), according to errno.h:

ENETUNREACH 101 /* Network is unreachable */
don_crissti
  • 79,330
  • 30
  • 216
  • 245
  • The most recent watchdog code includes text versions of the error codes (as well as other bug-fixes and improvements): https://sourceforge.net/p/watchdog/code/ci/master/tree/ You should be able to build it for your application. – Paul Crawford Oct 02 '16 at 09:29
  • Note file name has changed. See https://sourceforge.net/p/watchdog/code/ci/master/tree/include/watch_err.h – patricktokeeffe Jan 06 '20 at 19:48