File: powerd.cfg

package info (click to toggle)
sysvinit 2.86.ds1-38+etchnhalf.1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 1,268 kB
  • ctags: 655
  • sloc: ansic: 7,385; sh: 4,736; makefile: 405; perl: 244
file content (58 lines) | stat: -rw-r--r-- 1,519 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Example configuration for power daemon.
# NOTE: this is not implemented yet, just a design.
#
# @(#) powerd.cfg 1.01 01-Oct-1994 MvS
#

# This is the setup section. It sets up the default line
# signals that your UPS likes to see.
[ setup ]
dtr = 1
rts = 1
baud = 2400
send "AAAA"

# Now: how to tell UPS to turn off the power.
[ powerdown ]
dtr = 0
send "BYE"

# How to monitor the UPS, or a remote UPS.
# Possible line signals: dcd cts dsr ring
#
# Comment out the parts you don't want.
#
# All of this (1, 2, 3) can be combined.
[ monitor ]

# First, do we want to broadcast the UPS status
# on ethernet when something happens?
# Comment out to disable.
# Syntax: address, portnumber
#    address:    broadcast adress on ethernet
#    portnumber: unused priviliged port (under 1024)
broadcast = 10.0.33.255,15

# monitor type 1. This tells powerd to monitor line signals.
ok = dcd
fail = !dcd
lowbat = rts

# Monitor type 2. Tell powerd to look for data.
ok = "OK"
fail = "!"

# Monitor type 3. Listen to the ethernet.
#
# Warn_host is the hostname of the system with the UPS
# This is for security, so that someone on a DOS box
# can't spoof the powerd broadcast. The number after it
# is the portnumber to listen to (see above: broadcast).
#
# Note: if the broadcast address set above is enabled
# and we receive a message from a remote powerd, we check
# the received broadcast address. If this is the same
# as from the broadcast we just received,
# it will not be repeated (guess why).
remote = warn_host,15