FROM : Robert Cerny
DATE : Mon Jul 31 21:45:45 2006
Eric,
launchd (if you're on the Tiger) is the way to go. Download Lingon,
and use wizard to create the correct job.
HTH
Robert
On 31.7.2006, at 20:01, Eric Blanpied wrote:
>
> On Jul 31, 2006, at 10:16 am, Sherm Pendley wrote:
>
>>> I'm writing a Cocoa app that needs to run 24/7, and it's looking
>>> pretty decent so far. Still, I'm thinking it would be prudent to
>>> have some way of making sure it's always going, and automatically
>>> restart it if it fails.
>>>
>>> Does anyone have advice on this?
>>
>> You could schedule a script (with cron or launchd, depending on
>> the OS version) to run every so often to check if it's running and
>> if not, start it with "open".
>>
>> Although frankly I'm not a big fan of such an approach. Blindly
>> restarting an app without first determining the reason it failed
>> is very rarely a useful thing to do. Quite often it will simply
>> fail again.
>>
>> sherm--
>
> Thanks. I'm with you on that. I'd probably do something like send
> an email with the failure notification as well as relaunch the app,
> but the app's gotta keep going no matter what.
>
> -e
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
DATE : Mon Jul 31 21:45:45 2006
Eric,
launchd (if you're on the Tiger) is the way to go. Download Lingon,
and use wizard to create the correct job.
HTH
Robert
On 31.7.2006, at 20:01, Eric Blanpied wrote:
>
> On Jul 31, 2006, at 10:16 am, Sherm Pendley wrote:
>
>>> I'm writing a Cocoa app that needs to run 24/7, and it's looking
>>> pretty decent so far. Still, I'm thinking it would be prudent to
>>> have some way of making sure it's always going, and automatically
>>> restart it if it fails.
>>>
>>> Does anyone have advice on this?
>>
>> You could schedule a script (with cron or launchd, depending on
>> the OS version) to run every so often to check if it's running and
>> if not, start it with "open".
>>
>> Although frankly I'm not a big fan of such an approach. Blindly
>> restarting an app without first determining the reason it failed
>> is very rarely a useful thing to do. Quite often it will simply
>> fail again.
>>
>> sherm--
>
> Thanks. I'm with you on that. I'd probably do something like send
> an email with the failure notification as well as relaunch the app,
> but the app's gotta keep going no matter what.
>
> -e
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| Eric Blanpied | Jul 31, 19:06 | |
| Sherm Pendley | Jul 31, 19:16 | |
| Eric Blanpied | Jul 31, 20:01 | |
| Robert Cerny | Jul 31, 21:45 |






Cocoa mail archive

