Regular shutdown vs. UPS shutdown behavior (& QuickTime Broadcaster)
If I simply select "Shut Down" (or "Restart") from the regular Apple menu while QTB recordings are in progress, the video files are preserved.
It was my understanding that the shutdown behavior in these two instances shouldn't be different, but it appears that it is. This machine is used for automated live video encoding, and the purpose of adding the UPS was to guarantee a graceful shutdown in the event of power loss. Any ideas? I just tried adding a "LogoutHook" to stop the broadcasts, but it doesn't appear to help -- the QuickTime Broadcaster process must get killed before any logout items are called?
It doesn't seem to matter what trigger I use in the UPS Energy Saver preference pane (shutdown after X minutes, with X minutes power left, or with X percent power left), and my other Energy Saver options are set as follows:
- Never sleep computer
- Sleep display after 1 minute
- Schedule startup for 7:00 AM and shutdown for 10:30 PM daily
- No wake for ethernet access
- No "Allow power button to sleep"
- No "Restart automatically"
- Yes "Show UPS status in menu bar"
Below are the entries I found in the system log for both methods of shutting down.
Regular Shutdown:
Sep 28 15:15:13 mydomain loginwindow[24]: DEAD_PROCESS: 0 console
Sep 28 15:15:13 mydomain shutdown[159]: halt by unitemcr:
Sep 28 15:15:13 mydomain shutdown[159]: SHUTDOWN_TIME: 1254168913 349077
Sep 28 15:15:13 mydomain com.apple.loginwindow[24]: Shutdown NOW!
Sep 28 15:15:13 mydomain mDNSResponder mDNSResponder-176.3 (Sep 30 2008 16:59:38)[23]: stopping
Sep 28 15:15:13 mydomain com.apple.loginwindow[24]: System shutdown time has arrived^G^G
UPS Battery Shutdown:
Sep 28 15:00:41 mydomain UPS[180]: Shutting down due to power loss!
Sep 28 15:00:41 mydomain shutdown[182]: halt by root: Shutting down due to power loss!
Sep 28 15:00:41 mydomain shutdown[182]: SHUTDOWN_TIME: 1254168041 255398
Sep 28 15:00:41 mydomain mDNSResponder mDNSResponder-176.3 (Sep 30 2008 16:59:38)[23]: stopping
Sep 28 15:00:41 mydomain /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder[95]: dnssd_clientstub read_all(13) failed 0/28 0
Interestingly, sending a shut down command via Apple Remote Desktop produces the same effect as the UPS battery shutdown -- the video files in progress are corrupt. Here are the system log entries from that procedure:
Sep 28 15:23:08 mydomain shutdown[152]: halt by myusername:
Sep 28 15:23:08 mydomain shutdown[152]: SHUTDOWN_TIME: 1254169388 203071
Sep 28 15:23:08 mydomain com.apple.RemoteDesktop.agent[82]: Shutdown NOW!
Sep 28 15:23:08 mydomain com.apple.RemoteDesktop.agent[82]: System shutdown time has arrived^G^G
Sep 28 15:23:08 mydomain mDNSResponder mDNSResponder-176.3 (Sep 30 2008 16:59:38)[23]: stopping
Sep 28 15:23:08 mydomain /System/Library/CoreServices/AirPort Base Station Agent.app/Contents/MacOS/AirPort Base Station Agent[79]: dnssd_clientstub read_all(4) failed 0/28 0
Sep 28 15:23:08 mydomain /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder[96]: dnssd_clientstub read_all(13) failed 0/28 0
2 x 2.8 GHz Quad-Core Intel Xeon, Mac OS X (10.5.8)