|
|
10.4: Automatically restart a crashed program
I have used this technique for over a year to keep Quicksilver running. WOrks fantastic! There has always been one issue I was trying to solve - when a shutdown or restart command is issued, all applications are quit including Quicksilver, but before the system has had time to restarts/shutdown, the daemons (incl Quicksilver) relaunch - thinking thats the right thing to do. No big deal - the system just quits the application again and shutdown/restart continues as usual. I just always thougt there must be some way to tell the launch daemon to "wait" x period of time before relaunching - hence giving time for the shutdwon/restart to complete without the daemon having time to realunch. There are some fields in the launchd config files for pause/wait - but I have tried setting them and they never seem to have any effect. I personally feel like there should be some mechanism built-in that recognizes a restart/shutdown command and doesn't even attempt to relaunch - but only Apple can fix that. Does anyone know a method to keep the daemons from relaunching during a restart/shutdown.
10.4: Automatically restart a crashed program
I think you used a different feuture of launchd, to keep an application running. I decided to go for my approach because sometimes I want to quit an application withou restart. Monitoring the crashlog only restarts the application on a crash, hence solving all of your issues. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.24 seconds |
|