Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Buadhai

macrumors 65816
Original poster
Jan 15, 2018
1,169
448
Korat, Thailand
If iTunes is open when I shut down my 2017 iMac running 10.14.6, iTunes often refuses to quit, becomes non-responsive and has to be force quit in order for the shutdown to continue. Normally this is not a problem. I'm sitting there and I can force iTunes to quit.

But, the other day I was doing some electric work that forced me to cut the power to the circuit on which my iMac is located. I have a UPS, which merrily beeped away as I was doing my work. Of course, everything takes longer than you think it will and after half an hour my UPS software attempted to shut down the Mac. No worries. I continued working.

When I was done and restored power, the Mac was still trying to shut down, but iTunes wouldn't cooperate. I had over 100 email messages from the UPS in my Inbox and about the same number of notifications from Growl. So, I forced iTunes to quit, let the machine shut down and restarted.

However, I now imagine with great horror what would happen if I were away from home for a few weeks when this happened. There would be thousands of email messages and Growl notifications. Nightmare.

The only way I can think of to avoid this nightmare is to turn off automatic shutdown in the UPS software. But, that seems to defeat the purpose of the software. And, no, Energy Saver does not recognize my UPS.

I can have the UPS software run a shell script when the battery gets low, but I'm unsure as to whether something like:

Code:
shutdown -h now

would shutdown even if an app wouldn't quit. And, do I need to run that as root?

Any other ideas?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.