bpowerd.man

Langue: en

Version: 65935 (mandriva - 22/10/07)

Section: 8 (Commandes administrateur)

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/rc.d/init.d/bpowerd
sysvinit script to start the bpowerd daemon
/etc/rc.d/init.d/bpowerfail
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/rc.d/init.d/powerfail start
pn::powerfailnow:/etc/rc.d/init.d/powerfail now
po::powerokwait:/etc/rc.d/init.d/powerfail stop

SEE ALSO

init(8).

AUTHOR

Program: Christopher Craig <ccraig@ccraig.org>
Manual page: Mitch Blevins <mblevin@debian.org>
Changes by Christopher Craig