NAME
bpowerd - monitor UPS status for Best Patriot power supplies
SYNOPSIS
bpowerd [-k ] <device>
DESCRIPTION
bpowerd is used to monitor a serial port for the status of a Best Patriot power supply. It runs as a daemon and sends status information to the system log. bpowerd can detect powerfail, battery-low, and power-restore conditions. The status is communicated to init via /dev/initctl. bpowerd can also send a signal to the power supply's inverter by using the -k switch.
OPTIONS
- -k
-
Send kill signal to the inverter. Power will cycle in 2 minutes. This call is deprecated signal the deamon with SIGINT instead.
- <device>
-
Serial port connected to UPS. (usually /dev/ups)
EXITING
Send SIGTERM to kill deamon and exit cleanly, and SIGINT to kill deamon and kill inverter if in powerfail. Do not kill deamon with SIGKILL as it may not close the serial port and will prevent the deamon from running correctly in the future. (until the next reboot)
FILES
- /etc/init.d/bpowerd
-
sysvinit script to start the bpowerd daemon
- /etc/init.d/powerfail
-
script called by init with (start|now|stop) argument when power event is signalled
- /etc/inittab
-
Contains definitions of scripts to be run by init when signalled by bpowerd
The following lines should be present:
pf::powerwait:/etc/init.d/powerfail start
pn::powerfailnow:/etc/init.d/powerfail now
po::powerokwait:/etc/init.d/powerfail stop
SEE ALSO
AUTHOR
- Program: Christopher Craig <[email protected]>
- Manual page: Mitch Blevins <[email protected]>
- Changes by Christopher Craig