Skip to content

watchdog.conf

Calin Crisan edited this page Nov 11, 2023 · 4 revisions

File Location And Role

The following paths are searched, in this order: /etc/watchdog.conf, /data/etc/watchdog.conf and /boot/watchdog.conf. Files that are present are used to source in options for configuring the system watchdog.

File Format

This is a simple shell script that should contain only NAME="value" lines. The file is sourced by many init scripts.

Available Variables

DEVICE

Sets the watchdog device. Defaults to /dev/watchdog.

TIMEOUT

Determines the watchdog feed timeout, in seconds. Defaults to 5.

THERMAL_ZONE

If set, determines the thermal zone used to read the system temperature (e.g. thermal_zone0). Disabled by default.

MAX_TEMP

Determines the temperature threshold, in degrees Celsius, above which the system generates a panic. Disabled by default.

TEMP_INTERVAL

Determines how often, in seconds, to check the temperature. Defaults to 10.

CHECK_INTERVAL

Determines how often, in seconds, to run the watchdog check scripts (if present and executable). Defaults to 10.

The system watchdog check script is located at /usr/libexec/watchdog-check, while the user watchdog check script is located at /data/etc/watchdog-check. They need to be executable and their exit code should be 0 if everything works fine. Other exit codes will determine a system panic.

Clone this wiki locally