New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

halting applications when shutting down


Post Reply New Thread Subscribe

 
Thread Tools
dajon226

 
Member Since: Dec 08, 2010
Posts: 1
dajon226 is on a distinguished road

dajon226 is offline
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!
QUOTE Thanks

Post Reply New Thread Subscribe


« reinstalling OS on a MacBook, from a MacBook Pro disk | Clean Restore without disc (willing to buy new disc) Question? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Applications folder confusion strawberry Apple Desktops 2 09-01-2010 03:54 AM
applications shutting down--moved countries? goheenee OS X - Apps and Games 1 09-14-2009 01:08 PM
Change in default "open with" applications revert back after reboot kousik OS X - Apps and Games 3 05-07-2009 04:10 AM
iTunes Mobile Applications folder. oOoiMacoOo iOS and Apps 0 08-05-2008 10:56 PM
Applications showing up as volumes? oinkydoodle Switcher Hangout 5 08-13-2005 02:15 PM

All times are GMT -4. The time now is 01:46 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?