Re: [Apcupsd-users] Disable UPS shutdown after the the system is powered down.
Brought to you by:
adk0212
|
From: apcupsd01.kj <apc...@sa...> - 2010-03-22 06:56:18
|
mudtoe wrote, On 3/21/2010 8:55 PM: > > Kris Jordan-2 wrote: > >> 30 seconds is probably not enough, especially with VMware server running >> on there. >> >> Disabling killpower, 02/19/2010, from me, edited >> > > 30 seconds is enough<snip> > You're correct... I must of had Windows on my mind. In Linux, killpower is sent right before the final halt which is after all other services and processes have been killed, so 30 seconds is plenty. > I did use your information from a previous post and commented out the > killpower lines in the apccontrol file, coupled with "shutdown -P now" in > the shutdown script. The laptop does shutdown and power off now, but when I > restart it, it still goes through the 5 minutes file verification. I'm > beginning to wonder if this problem is not related to apcupsd, but has > something to do with Ubuntu 9.10 64 bit itself. I had to go home, so I > can't play with this any longer until I go back there, which may be quite a > while, but I've left it in a situation where in a power failure the VMs can > be shutdown and the laptop itself will shutdown in a way that I can reliably > restart it via magic packet once the power comes back up, so that's a big > improvement. > I assume if you shutdown normally and restarted, it acted normally? And why 5 minutes; what file system type are you using (eg. ext3)? I wonder if possibly an always check option has been enabled. > <snip> My question is can I > setup apcupsd on a windows OS to report an outage, but not shutdown the OS > when the power runs out? Yes, BATTERYLEVEL -1 MINUTES -1 TIMEOUT 0 > That way, as long as the router and cable modem > are still running in the vacation home I can query the second UPS from a VM > at my primary residence and see if the power is on or not. Obviously if the > connection is down, then I have to assume that the power is out and the > battery is discharged, but if the connection is up I'll have a way to know > if it's back up after the power came on, or if it's still up but on battery, > in which case I wouldn't want to restart the laptop. The trick would be > that I only want apcupsd to report, and in fact all I really would need is > the windows equivalent of the "apcaccess status" command to do a real time > query of the UPS to see if it's on AC power. Not sure how well Apcupsd will handle a high latency USB connection, I would be surprised if it worked. A Smart-UPS with a network management card installed would be a better solution if you could afford it. Also, running the batteries completely down doesn't help their lifespan. A network management card installed would allow it to shutdown w/o a PC's involvement. I have other ideas, but I'll wait to hear if your Belkin USB device does the job. |