12-08-2010, 01:03 PM #1
halting applications when shutting down
- Member Since
- Dec 08, 2010
I'm trying to find a solution to halt an application during the shutdown process. It appears that launchd does not support signals trapped from shutdown.
I have Snow Leopard (10.6.x), on it I have VMWare and one of its instances is a Linux VM running Oracle 11g (there currently is no distribution for Mac OS X). I have scripts to pause the VM and I'd like to find a way to pause the system during a shutdown.
I have found a couple of very crude solutions, namely a launchd daemon that pings itself, when network dies then run shutdown. For several reasons this solution is not ideal, here are a few issues:
1. It unnecessarily consumes a minor bit of network bandwidth,
2. It waits until the network is dead, thus it effectively runs much later than I'd like.
3. Its sensitivity is dependant upon how fast you repeatedly test (sample) ping.
Does Mac OSX Server do this differently? Is there something akin to /sbin/init.d/Kxxxxx or /etc/init.d/<script> that can get called?
Is there another distribution to launchd with this functionality?
Thanks in Advance!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By livefortoday649 in forum OS X - Apps and GamesReplies: 4Last Post: 03-13-2010, 10:31 AM
By goheenee in forum OS X - Apps and GamesReplies: 1Last Post: 09-14-2009, 01:08 PM
By Yilmaz in forum OS X - Apps and GamesReplies: 1Last Post: 11-23-2008, 02:26 PM
By nounousomes in forum Running Windows (or anything else) on your MacReplies: 3Last Post: 12-31-2006, 08:40 AM
By andrew.glesener in forum OS X - Apps and GamesReplies: 12Last Post: 05-25-2006, 05:40 PM