These are the installation instructions for bpowerd. If you're using RedHat install the RPM
and then do steps 6 and 7.
General Installation Instructions
- untar/ungzip file to /usr/src and cd to /usr/src/bpowerd-2.0
- run ./configure
- if you're not sure of the cable quality follow debug instructions.
- make install
- check /etc/inittab to make sure it does what it should. (There
should be three lines that look like below. They don't have to be
consecutive, just present. Also look in the INSTALL file in
/usr/src/bpowerd-2.0, it should have determined the correct location for the
- run "ln -s <device> /dev/ups" where <device> is the
device file of the comm port of you ups:
|port ||device file
|com 1 ||/dev/cua0
|com 2 ||/dev/cua1
|com 3 ||/dev/cua2
|com 4 ||/dev/cua3
- add a line to your startup script that runs "bpowerd /dev/ups"
- add a line to your shutdown script that runs
kill -INT `/sbin/pidof bpowerd`
while [ "`/sbin/pidof bpowerd`" != "" ]; do
- edit /etc/rc.d/init.d/bpowerfail to have appropriate shutdown times
run "/usr/src/bpowerd-2.0/bpowerdebug /dev/ups"
turn off the power to the UPS and see if the messages change
When you've tested powerfail and low battery do the rest of the
general installation and then restart the computer and test again to
make sure shutdowns are actually scheduled.
When confident of the performance hook the UPS to the wall and the
computer to the UPS.
- make debug
- plug a lamp or some other load into the UPS and put an extension
cord or powerstrip between the UPS and the outlet (DO NOT just unplug
the UPS to test it)
- do step 7 of above.