65a76f0a09ce7285f58380d68a47061b73459cca
[sysvinit.git] / obsolete / powerd.cfg
1 # Example configuration for power daemon.
2 # NOTE: this is not implemented yet, just a design.
3 #
4 # @(#) powerd.cfg 1.01 01-Oct-1994 MvS
5 #
6
7 # This is the setup section. It sets up the default line
8 # signals that your UPS likes to see.
9 [ setup ]
10 dtr = 1
11 rts = 1
12 baud = 2400
13 send "AAAA"
14
15 # Now: how to tell UPS to turn off the power.
16 [ powerdown ]
17 dtr = 0
18 send "BYE"
19
20 # How to monitor the UPS, or a remote UPS.
21 # Possible line signals: dcd cts dsr ring
22 #
23 # Comment out the parts you don't want.
24 #
25 # All of this (1, 2, 3) can be combined.
26 [ monitor ]
27
28 # First, do we want to broadcast the UPS status
29 # on ethernet when something happens?
30 # Comment out to disable.
31 # Syntax: address, portnumber
32 # address: broadcast adress on ethernet
33 # portnumber: unused priviliged port (under 1024)
34 broadcast = 10.0.33.255,15
35
36 # monitor type 1. This tells powerd to monitor line signals.
37 ok = dcd
38 fail = !dcd
39 lowbat = rts
40
41 # Monitor type 2. Tell powerd to look for data.
42 ok = "OK"
43 fail = "!"
44
45 # Monitor type 3. Listen to the ethernet.
46 #
47 # Warn_host is the hostname of the system with the UPS
48 # This is for security, so that someone on a DOS box
49 # can't spoof the powerd broadcast. The number after it
50 # is the portnumber to listen to (see above: broadcast).
51 #
52 # Note: if the broadcast address set above is enabled
53 # and we receive a message from a remote powerd, we check
54 # the received broadcast address. If this is the same
55 # as from the broadcast we just received,
56 # it will not be repeated (guess why).
57 remote = warn_host,15
58