| WATCHDOGCTL(1) | General Commands Manual (smm) | WATCHDOGCTL(1) |
NAME
watchdogctl —
Status and control tool for watchdogd
SYNOPSIS
watchdogctl |
[-hjvV-c
CODE-p
PIDclear ]
[disable | enable ] [debug ]
[loglevel LEVEL ]
[list-clients ] [reload ]
[reset [ ] [MSEC ]
[MSG ]fail
[ ]
[MSEC ] [MSG ]status ] |
DESCRIPTION
watchdogctl provides a safe way of querying
status and controlling
watchdogd(8).
OPTIONS
-c,--codeCODE- Reset reason codes for fail command:
Codes can also be listed at runtime with:
-chelp -h,--help- Show help message.
-j,--json- Output in JSON format for supported commands. Currently supported by
list-clientsandstatus. -p,--pidPID- PID to use for fail and reset command.
-v,--verbose- Enable verbose mode, otherwise commands are silent.
-V,--version- Show version information.
COMMANDS
Short forms of the below commands are allowed, as long as it is unique.clear- Clear reset reason, including reset counter.
counter- Show reset counter, number of reboots since power-on.
debug- Toggle daemon debug log level. See also the
loglevelcommand. disable|enable- Temporarily disable, or enable, daemon.
loglevelLEVEL- Adjust daemon log level: none, err, warn, notice, info, debug.
list-clients- List currently subscribed clients to the process supervisor. Shows each
client's ID, name (label), process ID, configured timeout, and time
remaining until timeout. Use the
-j,--jsonoption for JSON output suitable for scripting and monitoring. reload- Reload daemon configuration file, like sending SIGHUP, but the command
does not return until
watchdogdhas completed. reboot[MSEC] [MSG]- Alias to
reset. reset[MSEC] [MSG]- Perform system reset, with an optional millisecond delay and an optional
message to be stored as the reset reason label (usually process name). A
zero MSEC argument is the same as
omitting the argument, leading to an immediate reset. On systems with
finit(8),
watchdogdwill ask Finit to do an orderly shutdown (stop services, sync and unmount all file systems) before performing the WDT reset. fail[MSEC] [MSG]- Like the
resetcommand, records reset reason (see above-c-CODE) but does not reboot unless MSEC is given. I.e., omitting the MSEC argument does not have the same effect as in theresetcommand. status- Show daemon status and reason of last reset, default command. Displays
device information, capabilities, and reset history in a formatted table.
Use the
-j,--jsonoption to output raw JSON format. The JSON output shows all configured devices and their status, including capability flags. version- Show program version.
FILES
- /etc/watchdogd.conf
- Daemon configuration file. Read once when starting up and on SIGHUP or
reloadcommand. - /run/watchdogd/pid
- Process ID. Touched as a response to SIGHUP or
reloadcommand. - /run/watchdogd/status
- Read to present WDT status and reset reason
- /run/watchdogd/sock
- Used to connect to
watchdogd
SEE ALSO
watchdogd(8) watchdogd.conf(5)AUTHORS
watchdogd is an improved version of the
original, created by Michele d'Amico and adapted to uClinux-dist by Mike
Frysinger. It is maintained by Joachim Wiberg at
GitHub.| November 23, 2025 | Debian |
Maintained in troglobit/watchdogd as man/watchdogctl.1. Send corrections there, or read it on the mirror.