CF Startup and shutdown on OSX

There’s a simple and easy way to control CF instances on OSX (or flex / jrun for that matter). Get a little program called Lingon.

  1. Once installed, run it and click the “New” button (top left).
  2. Choose “Users Daemons”
  3. On the resulting screen, set the “Label” field as something like “CFMX Service”
  4. Use the plus icon to the right of the “Program Arguments” box to add the following arguments. These arguments should be in order, and each should be added as a seperate entry in the list (by clicking the little plus button again):
    1. /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/bin/java
    2. -server
    3. -Djava.awt.headless=true
    4. -jar
    5. /Applications/JRun4/lib/jrun.jar
    6. -start
    7. cfusion
  5. Cick “Just save” or “Save and Load” and you’re done.

As you might imagine, you can change the last argument from “cfusion” to “flex” or whatever you named the instance of your FDS setup to create a service for starting your flex instance.

Post to Twitter Tweet This Post

No related posts.

  • Trackbacks are closed
  • Comments (3)
  1. Yup – what Rob said :)

    [Reply]

    • barry.b
    • April 30th, 2007

    so, this is like MSWindows admin services panel?

    how about it switching from manual to automatic (ie: on startup)? or a restart?

    [Reply]

  2. It’s a wrapper for the launchd app (man launchd). When you start the application you can use the Assistant to setup jobs to run at startup, periodically, a specific time, etc.

    Basically a more manageable cron

    [Reply]