[Nut-upsuser] FreeBSD rc.d scripts or shutdown howto?
clepple at gmail.com
Tue Aug 21 03:07:42 UTC 2007
On 8/20/07, Bryan <gruvin at gmail.com> wrote:
> if [ -f /etc/killpower ]; then
> echo "Killing the power, bye!"
> /usr/local/ups/bin/upsdrvctl shutdown <<< oops, upsd is already dead
upsdrvctl doesn't actually communicate with upsd - it simply starts
and stops drivers directly (and except in the case of shutting down
the UPS, the drivers then connect to upsd).
If you're using a USB driver, make sure the OS isn't unmounting
whatever USB filesystem might be necessary.
Another idea is to plug the server into another UPS (or directly into
the wall) and manually run the driver with "-k" and probably a few
"-D" options to see what is going on. Some drivers (tripplite_usb, for
one) do not fully implement the UPS shutdown commands, and other UPSes
do not let you shut them down unless they are already on battery.
- Charles Lepple
More information about the Nut-upsuser