WATCHDOGCTL(1)
π WATCHDOGCTL(1) β the system manager's manual bestie edition π
Okay so picture this: it's watchdogctl, from the System Manager's Manual section 1, and it's literally the little remote control for watchdogd πβ¨
β¨ NAME β¨
watchdogctl β the status-and-control tool for watchdogd, aka your new bestie for asking the watchdog "hey girl how are we doing" and telling it what to do π«Ά
πΈ SYNOPSIS πΈ
watchdogctl [-hjvV] [-c CODE] [-p PID] [clear] [disable | enable]
[debug] [loglevel LEVEL] [list-clients] [reload]
[reset [MSEC] [MSG]] [fail [MSEC] [MSG]] [status]
π¦ DESCRIPTION π¦
watchdogctl gives you a safe way of querying status and controlling watchdogd(8). Safe like, you're not poking the watchdog with a stick, you're having a civilized little chat π
π OPTIONS π
-c,--code CODEβ sets the reset reason code for thefailcommand. Here's the whole menu, no cap:- System OK
- PID failed subscribing
- PID failed kick
- PID failed unsubscribing
- PID failed to meet its deadline
- Forced reset
- Failed, unknown
- File descriptor leak
- Memory leak
- CPU overload
And plot twist, you can also list the codes at runtime with -c help π₯
-h,--helpβ shows the help message. classic.-j,--jsonβ outputs in JSON format for the commands that support it. Currently supported bylist-clientsandstatus. scripting girlies rise up π-p,--pid PIDβ the PID to use for thefailandresetcommands.-v,--verboseβ enables verbose mode, otherwise commands are silent π€« (lowkey spooky, but ok)-V,--versionβ shows version information. iconique.
π COMMANDS π
Short forms of the commands below are allowed β as long as it's unique β¨ (yes that's a vibe check on your abbreviations, choose wisely)
clearβ clears the reset reason, including the reset counter.counterβ shows the reset counter, i.e. the number of reboots since power-on.debugβ toggles the daemon debug log level. See also theloglevelcommand.disable|enableβ temporarily disables, or enables, the daemon. on and off era πloglevel LEVELβ adjusts the daemon log level. Your options are:none,err,warn,notice,info,debug.list-clientsβ lists the 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 that's suitable for scripting and monitoring πreloadβ reloads the daemon configuration file, like sendingSIGHUP, except the command does not return untilwatchdogdhas completed. patient queen behavior πreboot [MSEC] [MSG]β alias toreset.reset [MSEC] [MSG]β performs a system reset, with an optional millisecond delay and an optional message to store as the reset reason label (usually the process name). A zeroMSECargument is the same as omitting the argument, leading to an immediate reset π On systems withfinit(8),watchdogdwill ask Finit to do an orderly shutdown (stop services, sync and unmount all file systems) before performing the WDT reset. so polite.fail [MSEC] [MSG]β like theresetcommand, records the reset reason (see the-c-CODEabove) but does not reboot unlessMSECis given. I.e., omitting theMSECargument does not have the same effect as in theresetcommand. read that twice, bestie, it's giving trap πͺ€statusβ shows daemon status and reason of last reset, and it's the 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. main character command fr fr βversionβ shows the program version.
π FILES π
/etc/watchdogd.confβ the daemon configuration file. Read once when starting up and onSIGHUPor thereloadcommand./run/watchdogd/pidβ process ID. Touched as a response toSIGHUPor thereloadcommand./run/watchdogd/statusβ read to present WDT status and reset reason./run/watchdogd/sockβ used to connect towatchdogd.
π 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: https://github.com/troglobit/watchdogd.
π okay that's the whole thing bestie, go forth and watchdog responsibly π«Άβ¨
Debian Β· Nov 23, 2025 Β· that's the source, version and date, iykyk π π
π¦ where this page comes from
- nixos 26.05: watchdogd 4.1
- nixpkgs unstable: watchdogd 4.1
- Copyright (c) 2016-2024 Joachim Wiberg <troglobit@gmail.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms