1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
.\" $OpenBSD: watchdogd.8,v 1.9 2006/08/04 11:08:43 mbalmer Exp $
.\"
.\" Copyright (c) 2005 Marc Balmer <mbalmer@openbsd.org>
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd July 7, 2005
.Dt WATCHDOGD 8
.Os
.Sh NAME
.Nm watchdogd
.Nd watchdog timer retrigger daemon
.Sh SYNOPSIS
.Nm watchdogd
.Op Fl dq
.Op Fl i Ar interval
.Op Fl p Ar period
.Sh DESCRIPTION
.Nm
is a daemon to periodically retrigger the
.Xr watchdog 4
timer device from userland.
.Nm
is designed to work in high load environments,
where other methods
(such as a shell script invoking
.Xr sysctl 8 )
would involve too much overhead.
.Pp
The basic premise is that
after every
.Ar interval
seconds,
.Nm
resets the hardware timer to
.Ar period .
See also
.Xr watchdog 4
for more information on how watchdog timers work.
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl d
Do not daemonize.
If this option is specified,
.Nm
will run in the foreground.
.It Fl i Ar interval
Specify how often, in seconds,
.Nm
should retrigger the hardware timer.
If no interval is specified,
the value of
.Ar period
(see below)
divided by three is used.
.It Fl p Ar period
Set the hardware timer to expire in
.Ar period
seconds.
The default is 30 seconds.
.It Fl q
Be quiet.
With this option specified,
.Nm
will not output a warning message if the underlying hardware adjusted the
timeout period.
.El
.Sh SEE ALSO
.Xr watchdog 4 ,
.Xr sysctl 8
.Sh HISTORY
The
.Nm
program
first appeared in
.Ox 3.8 .
.Sh AUTHORS
.Nm
was written by
.An Marc Balmer Aq mbalmer@openbsd.org .
|