Thank you for the post.
If a shut down signal is sent to the operating system, then FileMaker Server will slow the shutdown process to properly close the hosted files and stop the processes.
This process can be observed in the FileMaker Server event.log. Below I have attached a screenshot of my event.log showing the process that took place the last time I clicked > Shut Down… to power off my computer.
We have an older APC battery. We have the same situation with an iMac, and worried about power outages when no one is around. I contacted APC to ask about upgrading to a new battery and using their PowerChute software. The response from Mouna Podnolana: Unfortunately at this time there is no APC software which is officially compatible with MAC software.
How does one get the battery to signal to the iMac that there has been an outage and the Filemaker server needs to shut down before the battery dies? What are others doing?
I just obtained a PDF guide from APC on how to set the Mac Energy Saver settings to allow the Mac to shut down at a designated time after the battery kicks in. (FYI to anyone reading: You need a data cable from battery to the Mac. Energy Saver then shows UPS options. Also FYI, APC first told me that they had no software that would work with a Mac, but this Energy Saver process makes extra software unnecessary.)
True to TSFalcon's reply, a shell script to communicate with Filemaker Server is unnecessary.
I tested the Energy Saver settings last night with a sample database and our APC battery, and it worked exactly as outlined. The event log showed the clean closing of the database and the shutdown of the server software and then the Mac itself without a hitch.
At this point: OS 10.6.4 and FMS11. Moving soon to Mavericks and FMS13.
This is awesome. My thanks to both APC and Filemaker.