Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: Automatically restart a crashed program' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Automatically restart a crashed program
Authored by: macavenger on Dec 19, '07 01:48:20PM
This hint is for when the app crashes nor when you quit. Keep always running is not the aim.
As I noted in my comment, you can do this through launchd
Show me where you see 'Only when it crashes', Because in Lingon for Leopard there is no such options AFAICS
from the launchd.plist man page (which has all the configuration options you can put into a LaunchAgent or LaunchDaemon plist file):
KeepAlive [boolean or dictionary of stuff]
This optional key is used to control whether your job is to be kept continuously running or to let demand and conditions control the invocation.
[...SNIP...]

    SuccessfulExit [boolean]
    If true, the job will be restarted as long as the program exits and with an exit status of zero. If false, the job will be restarted in the inverse condition.
It looks like Lingon may not have this key easily available, but it most certainly is an option through launchd.

---
Aluminum iMac 20" 2.4 GHz/3GB/300GB HD

[ Reply to This | # ]