Linux – Error codes for watchdog daemon

linuxwatchdog

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?

Best Answer

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 */
Related Question