linuxwd -- a simple watchdog to monitor your server.

This software is the "diver" application for the hardware described
in the subdirectory hardware of this package.
It's a watchdog to monitor the server and and a push button to 
shutdown your server for maintenance purposes.

The parts for the hardware cost about 5 EURO.

Documentaion
------------
Please read http://linuxfocus.org/English/July2002/article239.shtml 
for a detailed description.

Installation
------------
Run 
make 
to comple.

The run 
./linuxwd -t /dev/ttyS0 
to test your hardware (ttyS0 = COM1).

To install for Redhat and Mandrake run
make install
and creat the needed links from /etc/rc.d/rc3.d/ and /etc/rc.d/rc5.d/ 
as explained during the installation procedure.

For all other disrtibutions you can use the file linuxwd_rc_anydist
and copy it as S21linuxwd to the rc3- and rc5-directories in 
your Linux distribution.

Logging
-------
linuxwd writes messages to syslog with facility "daemon" and level
NOTICE and ERR.

The RS232 pinout
----------------
The RS 232 9 PIN D-SUB MALE connector at the Computer.
 9 PIN-connector25 PIN-connector Name  Dir       Description
 1              8                CD   input  Carrier Detect
 2              3                RXD  input  Receive Data
 3              2                TXD  output Transmit Data
 4              20               DTR  output Data Terminal Ready
 5              7                GND  --     System Ground
 6              6                DSR  input  Data Set Ready
 7              4                RTS  output Request to Send
 8              5                CTS  input  Clear to Send
 9              22               RI   input  Ring Indicator

 
That's it.

-------------------------------
Versions:
2002-02-21: version 0.1 first version
2002-02-25: version 0.2 improved test mode
2002-03-02: version 0.3 Added circuit for 500 Ohm relay
2002-12-28: version 0.4 New and improved circuit design
                        with only 100uF capactitor for timout.
                        A second design for a 500 Ohm relay added with
                        red led.
2003-01-03: version 0.5 10ms pulses. spec-file for rpm
                        compatible with redhat chkconfig

2003-11-23: version 0.6 do a write test every hour
                        to make sure the disk is working

Written by Guido Socher <guido at linuxfocus.org>

Copyright: GPL, see http://www.gnu.org/copyleft/ for details
