---
name: "bpowerdebug"
section: "8"
platform: "linux"
package: "bpowerd"
version: "2.2-1.1"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/bpowerd"
---

# bpowerdebug(8)

monitor UPS status for Best Patriot power supplies

Part of [bpowerd(8)](/bpowerd/8.md).

## 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

[**init**(8)](/init/8.md).

## AUTHOR

- Program: Christopher Craig \<ccraig@ccraig.org\>

  - Manual page: Mitch Blevins \<mblevin@debian.org\>

  - Changes by Christopher Craig
