Re: [Apcupsd-users] Disable UPS shutdown after the the system is powered down.
Brought to you by:
adk0212
|
From: mudtoe <e2...@ho...> - 2010-03-18 05:19:59
|
I've got a similar issue in that I'd rather not power down the UPS after shutdown, but instead I'd rather just power off the laptop. I've got a laptop in a vacation home that I leave running when I'm not there so that I can use it as a off site backup. It's running Ubuntu 9.10 server 64 bit, and I run a couple of VMs on it (VMWare Server 2.0). I've managed to change the apcupsd shutdown script to shutdown any running VMs, which appears to work OK, but I'm having trouble with shutting down the laptop itself cleanly. I think that the killpower script is running because the UPS turns off, but when I turn everything back on the laptop goes through the file system recovery process at bootup (takes about 5 mins), which is telling me that the shutdown wasn't clean. It looks like there is about a 30 second delay between the time that the laptop says it's doing the killpower script and the time that the UPS actually shuts down, but I can't verify that because when I do the "apcaccess eprom" command I get an error saying "Unknown command eprom". I'm not sure if this is a software problem, or if my UPS doesn't support it (it's a Back-UPS ES 550). What I'd like to do instead is to just cleanly shutdown the OS and power off the laptop, and let the UPS just run down and shut off if that's what it's going to do when the battery is exhausted. I have wake on lan setup on the laptop and can restart it later after the power comes back with a magic packet sent across the VPN between my vacation home and primary residence. There are a couple of other things on the UPS (e.g. DVR & Slingbox), but I usually don't have those turned on when I'm not there unless I want to watch something from my primary residence that isn't available there (I have a way to turn on and off the power outlets for these devices over the internet). My other concern, apart from the clean shutdown issue on the laptop, is what happens if the power comes back on between the time the killpower script runs, and the time that the UPS actually shuts down. In that case will the UPS shut off anyway (because of the killpower script), but not come back on because the power actually came back before it shutdown? If that happens I'm screwed. It seems much easier to not tell the UPS to turn off, but just let it run down naturally, as I'm sure it will power back on the devices after the power returns in that scenario. I tried changing the apcupsd shutdown script to say "shutdown -P now" instead of "shutdown -h now", but the laptop still didn't cleanly shut down. I'm thinking that the apcupsd process itself is preventing the laptop from fully shutting down in anticipation of having to do the killpower routine, so I'm wondering if I make the changes suggested to prevent the killpower script from running, in addition to my change to the shutdown command, if that will allow a clean shutdown. Suggestions or comments welcome. mudtoe -- View this message in context: http://old.nabble.com/Disable-UPS-shutdown-after-the-the-system-is-powered-down.-tp27660047p27922439.html Sent from the apcupsd-users mailing list archive at Nabble.com. |