File: README

package info (click to toggle)
watchdog 5.4-10lenny2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 936 kB
  • ctags: 684
  • sloc: ansic: 6,294; sh: 1,266; makefile: 72
file content (47 lines) | stat: -rw-r--r-- 1,973 bytes parent folder | download | duplicates (10)
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
Watchdog is a daemon that checks if your system is still working. If
programs in user space are not longer executed it will reboot the system.
However, this will not always work.

From the kernel:

>	Watchdog Timer Interfaces For The Linux Operating System
>
>		Alan Cox <alan@lxorguk.ukuu.org.uk>
>
>	    Custom Linux Driver And Program Development
>
>[...]
>
>All four interfaces provide /dev/watchdog, which when open must be written
>to within a minute or the machine will reboot. Each write delays the reboot
>time another minute. In the case of the software watchdog the ability to 
>reboot will depend on the state of the machines and interrupts. The hardware
>boards physically pull the machine down off their own onboard timers and
>will reboot from almost anything.

This tool proved very useful for me, because I always run the latest kernel
and the latest libc release, but rely on the machine to be up and running
for email.

Note, that you have to enable the software watchdog driver in your kernel
for the program to be able to hard reset the system unless you have a
hardware watchdog of course. Make sure you don't compile watchdog with a
different timer margin than the kernel driver.

As of version 4.0 watchdog is able to make itself a real-time application.
It will lock all its pages in memory and set its scheduler to round-robin.
This will take up to 900 pages of memory but guarantees you that watchdog
will get its share of processor time. If you ever experienced a hard reset
just because watchdog wasnt scheduled for a minute, you will probably have
no problem with the 900 pages which is not so much anyway.

Of course this is not needed for machines running on low load.

Don't be surprised if you see any zombie processes laying around. This is
normal. They will be removed the next time watchdog wakes up. Of course a
new zombie is created then, too. This zombie process is a result of the
process table check.

Michael
meskes@debian.org