work work werk
[mikesnafu-overlay.git] / sysvinit-2.86 / obsolete / powerd.8
blob701ea821826971f06658499cc8dc882a219bb27e
1 .TH POWERD 8 "Feb 14, 1994" "" "Linux System Administrator's Manual"
2 .SH NAME
3 .\" powerd \(em monitor a serial line connected to an UPS.
4 powerd -- monitor a serial line connected to an UPS.
5 .SH SYNOPSIS
6 .B /sbin/powerd
7 .RB " serial-device "
8 .SH DESCRIPTION
9 .B Powerd
10 is a daemon process that sits in the background and monitors the state
11 of the DCD line of the serial device. This line is meant to be
12 connected to a UPS (Uninterruptible Power Supply) so that \fBpowerd\fP knows
13 about the state of the UPS. As soon as \fBpowerd\fP senses that the
14 power is failing (it sees that DCD goes low) it notifies \fBinit\fP(8),
15 and \fBinit\fP then executes the \fBpowerwait\fP and \fBpowerfail\fP entries.
16 If \fBpowerd\fP senses that the power has been restored, it notifies \fBinit\fP
17 again and \fBinit\fP will execute the \fBpowerokwait\fP entries.
18 .SH ARGUMENTS
19 .IP serial-device
20 Some serial port that is not being used by some other device, and does not
21 share an interrupt with any other serial port.
22 .SH DIAGNOSTICS
23 \fBPowerd\fP regularly checks the \fBDSR\fP line to see if it's high.
24 \fBDSR\fP should be directly connected to \fBDTR\fP and \fBpowerd\fP
25 keeps that line high, so if \fBDSR\fP is low then something is wrong
26 with the connection. \fBPowerd\fP will notify you about this fact every
27 two minutes. When it sees that the connection has been restored it
28 will say so.
29 .SH HOWTO
30 It's pretty simple to connect your UPS to the Linux machine. The steps
31 are easy:
32 .TP 0.5i
33 .B 1.
34 Make sure you have an UPS with a simple relay output: it should
35 close its connections (make) if the power is gone, and it should
36 open its connections (break) if the power is good.
37 .TP 0.5i
38 .B 2.
39 Buy a serial plug. Connect the DTR line to the DSR line directly.
40 Connect the DTR line and the DCD line with a \fB10 kilo ohm\fP
41 resistor. Now connect the relay output of the UPS to GROUND
42 and the DCD line. If you don't know what pins DSR, DTR, DCD and
43 GROUND are you can always ask at the store where you bought the plug.
44 .TP 0.5i
45 .B 3.
46 You're all set.
47 .SH BUGS
48 Well, not a real bug but \fBpowerd\fP should be able to do a broadcast or
49 something on the ethernet in case more Linux-boxes are connected to
50 the same UPS and only one of them is connected to the UPS status line.
51 .SH SEE ALSO
52 .BR shutdown (8),
53 .BR init (8),
54 .BR inittab (5)
55 .SH AUTHOR
56 Miquel van Smoorenburg, miquels@cistron.nl