]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - usr.sbin/watchdogd/watchdogd.8
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / usr.sbin / watchdogd / watchdogd.8
1 .\" Copyright (c) 2004  Poul-Henning Kamp <phk@FreeBSD.org>
2 .\" Copyright (c) 2003  Sean M. Kelly <smkelly@FreeBSD.org>
3 .\" All rights reserved.
4 .\"
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
7 .\" are met:
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\"    notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\"    notice, this list of conditions and the following disclaimer in the
12 .\"    documentation and/or other materials provided with the distribution.
13 .\"
14 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
15 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
18 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 .\" SUCH DAMAGE.
25 .\"
26 .\" $FreeBSD$
27 .\"
28 .Dd September 2, 2006
29 .Dt WATCHDOGD 8
30 .Os
31 .Sh NAME
32 .Nm watchdogd
33 .Nd watchdog daemon
34 .Sh SYNOPSIS
35 .Nm
36 .Op Fl d
37 .Op Fl e Ar cmd
38 .Op Fl I Ar file
39 .Op Fl s Ar sleep
40 .Op Fl t Ar timeout
41 .Sh DESCRIPTION
42 The
43 .Nm
44 utility interfaces with the kernel's watchdog facility to ensure
45 that the system is in a working state.
46 If
47 .Nm
48 is unable to interface with the kernel over a specific timeout,
49 the kernel will take actions to assist in debugging or restarting the computer.
50 .Pp
51 If
52 .Fl e Ar cmd
53 is specified,
54 .Nm
55 will attempt to execute this command with
56 .Xr system 3 ,
57 and only if the command returns with a zero exit code will the
58 watchdog be reset.
59 If
60 .Fl e Ar cmd
61 is not specified, the daemon will perform a trivial file system
62 check instead.
63 .Pp
64 The
65 .Fl s Ar sleep
66 argument can be used to control the sleep period between each execution
67 of the check and defaults to one second.
68 .Pp
69 The
70 .Fl t Ar timeout
71 specifies the desired timeout period in seconds.
72 The default timeout is 16 seconds.
73 .Pp
74 One possible circumstance which will cause a watchdog timeout is an interrupt
75 storm.
76 If this occurs,
77 .Nm
78 will no longer execute and thus the kernel's watchdog routines will take
79 action after a configurable timeout.
80 .Pp
81 Upon receiving the
82 .Dv SIGTERM
83 or
84 .Dv SIGINT
85 signals,
86 .Nm
87 will first instruct the kernel to no longer perform watchdog checks and then
88 will terminate.
89 .Pp
90 The
91 .Nm
92 utility recognizes the following runtime options:
93 .Bl -tag -width ".Fl I Ar file"
94 .It Fl I Ar file
95 Write the process ID of the
96 .Nm
97 utility in the specified file.
98 .It Fl d
99 Do not fork.
100 When this option is specified,
101 .Nm
102 will not fork into the background at startup.
103 .El
104 .Sh FILES
105 .Bl -tag -width ".Pa /var/run/watchdogd.pid" -compact
106 .It Pa /var/run/watchdogd.pid
107 .El
108 .Sh SEE ALSO
109 .Xr watchdog 4 ,
110 .Xr watchdog 8 ,
111 .Xr watchdog 9
112 .Sh HISTORY
113 The
114 .Nm
115 utility appeared in
116 .Fx 5.1 .
117 .Sh AUTHORS
118 .An -nosplit
119 The
120 .Nm
121 utility and manual page were written by
122 .An Sean Kelly Aq smkelly@FreeBSD.org
123 and
124 .An Poul-Henning Kamp Aq phk@FreeBSD.org .
125 .Pp
126 Some contributions made by
127 .An Jeff Roberson Aq jeff@FreeBSD.org .