3
As Far as I can tell no one has actually solved this debacle. How do you get a mac mini to power on every time the UPS it is connected to restores power? It is easy enough to have the UPS communicate that power is about to turn off so have the mac run the command halt -u, or shutdown -h -u, etc, and many solutions such as powerchute from APC guarantee that it will shutdown etc. But it is not guaranteed that the mac will turn back on. If this bit/ file was permanently set so mac the mac believed that it dirty shutdown every time, whatever hardware is responsible for the power sensing of the power restored would always boot the mac when power is restored, even if the mini was powered off during while it booted. Currently if your mini powers off without dirty shutdown being set you are boned, and you must physically press the power button on the back for it to restart, which is unacceptable if the mini is says 5000 miles away or at the bottom of the ocean. You should be able to get this functionality even if no UPS is involved just by having the mac always try to reboot when power is restored. Has anyone ever figured this out?
So why not just have the UPS kill power out from underneath the computer? – Jeremy L – 2010-06-30T16:15:09.763
2Because killing the power like that leads to corrupt files/filesystems, and no end of other problems? – Dentrasi – 2010-06-30T16:57:22.067
antrasi is right obviously you cannot just cut power. in the man page for shutdown it says that it shuts down the system and then halts for 5 minutes before removing power so that the UPS can cut the power simulating a dirty shutdown. – ghostsource – 2010-06-30T17:16:01.210
Just out of curiosity, do you often find that your Mini is 5000 miles away, or stuck at the bottom of the ocean, then? – Connor W – 2011-05-25T13:37:08.093
2Yes I do. I deploy them into remote locations where they may not be serviceable by a human for days at a time, and we are talking about hundreds of them – ghostsource – 2011-06-01T15:36:11.070