Launchd is a replacment of rc on Mac OSX. Launchd starts system and user services.

See man page launchd.

Searchs configurtions files in the following directories:

 ~/Library/LaunchAgents        Per-user agents provided by the user.
 /Library/LaunchAgents         Per-user agents provided by the administrator.
 /Library/LaunchDaemons        System wide daemons provided by the administrator.
 /System/Library/LaunchAgents  Mac OS X Per-user agents.
 /System/Library/LaunchDaemons Mac OS X System wide daemons.

Configuration files are xml properite lists. An example config file has the name org.instiki.launchd.instiki.plist. The file looks like this:





        Label
        org.instiki.launchd.instiki
        ProgramArguments
        
                /usr/bin/ruby
                /Users/carsten/opt/instiki-0.11.pl1/instiki.rb
                --daemon
        
        RunAtLoad
        


Load the plist:

launchctl load /path/to/my.plist

Start the service by hand:

launchctl start my.plist