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.

TrackBacks
There are no trackbacks for this entry.

Trackback URL for this entry:
http://www.tobytremayne.com/trackback.cfm?404ADCE2-08EB-AC8C-211755E0FB957343

Comments
barry.b's Gravatar so, this is like MSWindows admin services panel?

how about it switching from manual to automatic (ie: on startup)? or a restart?
# Posted By barry.b | 4/30/07 4:10 PM
rob's Gravatar 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
# Posted By rob | 4/30/07 6:03 PM
Toby Tremayne's Gravatar Yup - what Rob said :)
# Posted By Toby Tremayne | 4/30/07 6:57 PM