On Tue, 8 Oct 2002 13:33:56 -0700 Cory <[EMAIL PROTECTED]> wrote: > Speaking of APC BackUPS, I have a 650 BackUPS Pro, with serial status > reporting. How can I integrate the Smart portion into linux? I would love to > know how to set it up so that when there's only a couple of minutes left of > power, begin the shutdown sequence, and if power is restored, cancel the > shutdown... I know there is software out there that does this, but any > suggestions would be greatly appreciated! (GkrellM support for this would be > awesome as well!!) Thanks.
I found this in my /etc/inittab (ML9.0): # When our UPS tells us power has failed, assume we have a few minutes # of power left. Schedule a shutdown for 2 minutes from now. # This does, of course, assume you have powerd installed and your # UPS connected and working correctly. pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down" # If power was restored before the shutdown kicked in, cancel it. pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled" I found RPM's for powerd on rpmfind.net and a URL: http://power.sourceforge.net/ HTH, -Frans
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com