POWERD(8)

NAME
powerd - monitor the DCD line of a serial port.

SYNOPSIS
/bin/powerd serial device
For example, /bin/powerd /dev/cua3

DESCRIPTION
Powerd monitors the DCD line of a serial port to detect power failures. If the power goes down, it notifies init by writing the message "FAIL" to the file /etc/powerstatus. When the power is back up, it notifies init by writing the message "OK" to the file /etc/powerstatus. Power is considered to fail when the DCD line goes "HIGH", and to be back up when the DCD line goes "LOW". You can connect DCD and DTR with a 10 kOhm resistor.

NOTES
Originally written for Cistron Electronics, who have kindly given permission to release the program.

AUTHOR
Miquel van Smoorenburg, miquels@drinkel.nl.mugnet.org