In message <[email protected]>, Thorsten =?ISO-8859-1?B?
TfxobGZlbGRlcg==?= writes:

>So I need a damon, too?
> I thought it's a kernel only thing because there is extra hardware
> for this task.

In FreeBSD we have a kernel device driver for watchdog hardware,
(and it works on all soekris boxes, I know, I wrote it :-)

But patting the dog is done from userland by opening the device
and issuing a special ioctl:

        #define WDIOCPATPAT     _IOW('W', 42, u_int)

We supply two variants of a program to do this from the command line,
one you must call repeatedly watchdog(8), and one that works as a
daemon, watchdogd(8), which can execute a command to see that all
is well.

For instance, I run:

        watchdogd -t 20 -e "ping -q -c 5 192.168.48.3"

On one of my very remote machines, if it cannot see the other end of
its VPN, it will reboot after half a minute.

Has kept me in touch despite random acts of ISPs, power companies and
all other sorts of calamities.

Poul-Henning

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[email protected]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
_______________________________________________
Soekris-tech mailing list
[email protected]
http://lists.soekris.com/mailman/listinfo/soekris-tech

Reply via email to