Lines Matching +full:pre +full:- +full:timeout

3 .\" Copyright (c) 2004  Poul-Henning Kamp <phk@FreeBSD.org>
37 .Op Fl -debug
38 .Op Fl -softtimeout
39 .Op Fl -softtimeout-action Ar action
40 .Op Fl -pretimeout Ar timeout
41 .Op Fl -pretimeout-action Ar action
45 .Op Fl t Ar timeout
55 is unable to interface with the kernel over a specific timeout,
73 argument 'dry-run' will cause watchdog not to arm the system watchdog and
84 .Fl t Ar timeout
85 specifies the desired timeout period in seconds.
86 The default timeout is 128 seconds.
88 One possible circumstance which will cause a watchdog timeout is an interrupt
93 action after a configurable timeout.
107 argument is the timeout period (in seconds) to leave in effect when the
111 with a non-zero value protects against lockup during a reboot by
113 before the given timeout expires.
122 timeout or reset it to the value given by
128 .Bl -tag -width 30m
133 .It Fl d Fl -debug
147 .It Fl -pretimeout Ar timeout
149 At "timeout" seconds before the watchdog will fire attempt an action.
150 The action is set by the --pretimeout-action flag.
153 .It Fl -pretimeout-action Ar action
154 Set the timeout action for the pretimeout.
156 .Sx Timeout Actions .
157 .It Fl -softtimeout
163 .It Fl -softtimeout-action Ar action
164 Set the timeout action for the softtimeout.
166 .Sx Timeout Actions .
168 .Sh Timeout Actions
169 The following timeout actions are available via the
170 .Fl -pretimeout-action
172 .Fl -softtimeout-action
174 .Bl -tag -width ".Ar printf "
178 when the timeout is reached.
182 when the timeout is reached.
186 when the timeout is reached.
208 .Bl -tag -width ".Pa /var/run/watchdogd.pid" -compact
225 .Bl -enum -offset indent -compact
227 Set Debug on (--debug)
229 Set the watchdog to trip at 30 seconds. (-t 30)
232 .Bl -enum -offset indent -compact -nested
235 (--softtimeout)
242 (--softtimeout-action log,printf)
245 Use of a pre-timeout:
246 .Bl -enum -offset indent -compact -nested
248 Set a pre-timeout of 15 seconds (this will later trigger a panic/dump).
249 (--pretimeout 15)
256 (--pretimeout-action log,printf)
260 .Bl -enum -offset indent -compact -nested
262 Run "sleep 60" as a shell command that acts as the watchdog (-e 'sleep 60')
264 Warn us when the script takes longer than 1 second to run (-w)
267 .Bd -literal
268 watchdogd --debug -t 30 \\
269 --softtimeout --softtimeout-action log,printf \\
270 --pretimeout 15 --pretimeout-action log,printf \\
271 -e 'sleep 60' -w
274 .Bl -enum -offset indent -compact
276 Set hard timeout to 120 seconds (-t 120)
281 .Bl -enum -offset indent -compact -nested
283 Use of pre-timeout (--pretimeout 60)
285 Specify pre-timeout action (--pretimeout-action log,printf,panic )
289 .Bl -enum -offset indent -compact -nested
291 Run your script (-e '/path/to/your/script 60')
293 Log if your script takes a longer than 15 seconds to run time. (-w -T 15)
296 .Bd -literal
297 watchdogd -t 120 \\
298 --pretimeout 60 --pretimeout-action log,printf,panic \\
299 -e '/path/to/your/script 60' -w -T 15
311 .An -nosplit
317 .An Poul-Henning Kamp Aq Mt phk@FreeBSD.org .