• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Keeping an App Alive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keeping an App Alive


  • Subject: Re: Keeping an App Alive
  • From: Sherm Pendley <email@hidden>
  • Date: Mon, 31 Jul 2006 13:16:54 -0400

On Jul 31, 2006, at 1:06 PM, Eric Blanpied 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--

Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Keeping an App Alive
      • From: Eric Blanpied <email@hidden>
References: 
 >Keeping an App Alive (From: Eric Blanpied <email@hidden>)

  • Prev by Date: Re: Core Recipes question (Migration)
  • Next by Date: Re: Copying large files with progress indicator
  • Previous by thread: Keeping an App Alive
  • Next by thread: Re: Keeping an App Alive
  • Index(es):
    • Date
    • Thread