OK - I got it to work.
Euchre - I quoted the wrong UPS, it is the Back-UPS 650 CS, as you can see from the extensive manual (
http://www.apcmedia.com/salestools/ASTE-6Z7VBGR0EN.pdf) I had nothing to go on
Pondini - Many thanks for recreating the issue and creating the trouble ticket - it seems things are "working as designed" though
The underlying issue(s) is that the UPS doesn't power-cycle itself (as suggested by Bsteely) and that even when it does, if the shutdown is graceful (ex. shutdown -h now) then the Mac has no reason to come back on when the UPS does power cycle.
Here's the how/what/why of getting it working:
installed apcupsd (
http://www.apcupsd.com/) and followed the instructions for install/setup there (this removes the UPS tab in System Preferences)
edited the launchd entry for apcupsd to start with the -p --kill-on-powerfail switch. This tells the APC to shut itself off if the power fails (on the Back-UPS the fixed time for this is a ~180 second window)
edited the apcupsd.conf file to shutdown the iMac in 60 seconds or 50% of battery power left, or 5 minutes of battery power left which ever comes first
edited the apccontrol file to call /usr/libexec/upsshutdown instead of shutdown
edited /usr/libexec/upsshutdown to send "shutdown -hu now" in both a normal shutdown or UPS shutdown. the -u simulates a dirty shutdown (see man shutdown) so when the UPS does powercycle it brings the Mac back online.
I have tested pulling the power and within 60 seconds the Mac goes down, about 2 minutes later the UPS shuts down. When main power is back the UPS comes back and the Mac reboots. Additionally, if main power comes back during the 2 minute window, the UPS still goes down and then power cycles (so it doesn't power cycle twice if you follow).
I would prefer not to have used the -p --kill-on-powerfail switch, however I could not figure out how to insert the "normal" -killpower switch via apccontrol in the halt script (or where the halt script is in OS X actually) but I am open to suggestions.
I think the UPS / Start up after a power failure is working - if the UPS drains completely the Mac goes down hard, but reboots as soon as power is back. I think it's a case of working as designed versus working as expected!
Thanks,
Glenn