aboutsummaryrefslogtreecommitdiff
path: root/toys/other
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-10-21 01:21:27 -0500
committerRob Landley <rob@landley.net>2020-10-21 01:21:27 -0500
commite4e6fd8b454c11a4663b6c7afacad0ed4008a0cb (patch)
tree5868afd284a8d4313b2ed5500b5ca45e84e53deb /toys/other
parente8ff755cba9e249d0e43212acbc0c3bf38af1622 (diff)
downloadtoybox-e4e6fd8b454c11a4663b6c7afacad0ed4008a0cb.tar.gz
Tweak watchdog help.
Diffstat (limited to 'toys/other')
-rw-r--r--toys/other/watchdog.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/toys/other/watchdog.c b/toys/other/watchdog.c
index 7a49c0b0..a2e4fa01 100644
--- a/toys/other/watchdog.c
+++ b/toys/other/watchdog.c
@@ -11,14 +11,15 @@ config WATCHDOG
default y
depends on TOYBOX_FORK
help
- usage: watchdog [-F] [-t SW_TIMER_S] [-T HW_TIMER_S] DEV
+ usage: watchdog [-F] [-t UPDATE] [-T DEADLINE] DEV
Start the watchdog timer at DEV with optional timeout parameters.
-F run in the foreground (do not daemonize)
- -t software timer (in seconds)
- -T hardware timer (in seconds)
+ -t poke watchdog every UPDATE seconds (default 4)
+ -T reboot if not poked for DEADLINE seconds (default 60)
*/
+
#define FOR_watchdog
#include "toys.h"
#include "linux/watchdog.h"