1 Reply Latest reply on Jul 31, 2008 9:48 AM by Sean Hodges

    Re-Launching CS3 ID server after a crash.

    Jamesey2001 Level 1
      We have an IDCS3 Server running on MACOSX, usually started from the terminal ( via an apple script ).
      Occasionally after processing a large number of jobs, the server process can crash.

      This itself is not too big a problem, but I was wondering if anyone knew how the process could automatically re-launch if it stops for any reason.

      TIA,

      Mike.
        • 1. Re: Re-Launching CS3 ID server after a crash.
          Sean Hodges
          This may not be exactly the answer you're looking for, but by switching to launchd you can leverage a lot of the daemon tools built in to the Mac:

          http://developer.apple.com/macosx/launchd.html

          You can set your launchd script to start on demand or on boot, and you will also get a "keep alive" mechanism for ensuring IDS CS3 is restarted in the event of a crash:

          http://www.macosxhints.com/article.php?story=20071220095645567

          If you're looking for an AppleScript solution, sorry I don't have much experience with that. I'd imagine you could assign a pid to the IDS instance, and poll that the process is still active...