Re: [Apcupsd-users] Powering Debian/Linux box back on after APC UPS powers the PC off and power com
Brought to you by:
adk0212
|
From: David B. <db3...@gm...> - 2011-07-08 20:44:02
|
Phillip Pi <an...@zi...> writes: > I did have my BIOS/CMOS to set "last state" so my PC can turn on after > PC is turned off. For some reason, it didn't work from an earlier's > five hours power outage? Here's my APC UPS event log: Typically that BIOS setting (as opposed to always on with power) will only start up the machine had been operating right at the point of the power interruption. > ... > $ cat /var/log/apcupsd.events > 2011-06-14 20:44:37 -0700 apcupsd 3.14.8 (16 January 2010) debian > startup succeeded > 2011-07-06 12:26:48 -0700 Power failure. > 2011-07-06 12:26:54 -0700 Running on UPS batteries. > 2011-07-06 12:52:46 -0700 Battery charge below low limit. > 2011-07-06 12:52:46 -0700 Initiating system shutdown! > 2011-07-06 12:52:46 -0700 User logins prohibited > 2011-07-06 12:52:49 -0700 apcupsd exiting, signal 15 > 2011-07-06 20:06:31 -0700 apcupsd 3.14.8 (16 January 2010) debian > startup succeeded In this case, apcupsd cleanly shut down the machine prior to power being removed, so from the BIOS perspective "last state" was "off", and that's how it stayed when power was restored. You'd need to configure BIOS so that the PC always powers up as soon as it receives power (regardless of its prior state) to restart in this scenario. -- David |