mdoc and language improvements.

This commit is contained in:
Joel Dahl 2013-07-28 06:15:25 +00:00
parent 4705e3668d
commit 3f1e923c61

View File

@ -115,7 +115,7 @@ will terminate.
The The
.Nm .Nm
utility recognizes the following runtime options: utility recognizes the following runtime options:
.Bl -tag -width ".Fl -softtimeout-action Ar action " .Bl -tag -width 30m
.It Fl I Ar file .It Fl I Ar file
Write the process ID of the Write the process ID of the
.Nm .Nm
@ -204,16 +204,23 @@ and the kernel
.Xr log 4 .Xr log 4
device for device for
.Xr syslog 8 . .Xr syslog 8 .
.Sh FILES
.Bl -tag -width ".Pa /var/run/watchdogd.pid" -compact
.It Pa /var/run/watchdogd.pid
.El
.Sh EXAMPLES .Sh EXAMPLES
.Ss Debugging watchdogd and/or your watchdog script. .Ss Debugging watchdogd and/or your watchdog script.
This is a useful recipe for debugging
.Nm
and your watchdog script.
.Pp .Pp
This is a useful recipe for debugging watchdogd and your watchdog (Note that ^C works oddly because
script. .Nm
.Pp calls
(Note that ^C works oddly because watchdogd calls system(3) so the .Xr system 3
so the
first ^C will terminate the "sleep" command.) first ^C will terminate the "sleep" command.)
.Pp .Pp
.Pp
Explanation of options used: Explanation of options used:
.Bl -enum -offset indent -compact .Bl -enum -offset indent -compact
.It .It
@ -224,17 +231,29 @@ Set the watchdog to trip at 30 seconds. (-t 30)
Use of a softtimeout: Use of a softtimeout:
.Bl -enum -offset indent -compact -nested .Bl -enum -offset indent -compact -nested
.It .It
Use a softtimeout (don't arm the hardware watchdog) (--softtimeout) Use a softtimeout (do not arm the hardware watchdog).
(--softtimeout)
.It .It
Set the softtimeout action to do both kernel printf(9) and log(9) when it trips. (--softtimeout-action log,printf) Set the softtimeout action to do both kernel
.Xr printf 9
and
.Xr log 9
when it trips.
(--softtimeout-action log,printf)
.El .El
.It .It
Use of a pre-timeout: Use of a pre-timeout:
.Bl -enum -offset indent -compact -nested .Bl -enum -offset indent -compact -nested
.It .It
Set a pre-timeout of 15 seconds (this will later trigger a panic/dump) (--pretimeout 15) Set a pre-timeout of 15 seconds (this will later trigger a panic/dump).
(--pretimeout 15)
.It .It
Set the action to also kernel printf(9) and log(9) when it trips. (--pretimeout-action log,printf) Set the action to also kernel
.Xr printf 9
and
.Xr log 9
when it trips.
(--pretimeout-action log,printf)
.El .El
.It .It
Use of a script: Use of a script:
@ -279,10 +298,6 @@ watchdogd -t 120 \\
--pretimeout 60 --pretimeout-action log,printf,panic \\ --pretimeout 60 --pretimeout-action log,printf,panic \\
-e '/path/to/your/script 60' -w -T 15 -e '/path/to/your/script 60' -w -T 15
.Ed .Ed
.Sh FILES
.Bl -tag -width ".Pa /var/run/watchdogd.pid" -compact
.It Pa /var/run/watchdogd.pid
.El
.Sh SEE ALSO .Sh SEE ALSO
.Xr watchdog 4 , .Xr watchdog 4 ,
.Xr watchdog 8 , .Xr watchdog 8 ,