Launchd and property sheets.

Using the property sheet file below a daemon can be started at login to run a local instance of the federated wiki server. Place the file in ~/Library/LaunchAgents with a name like: org.wiki.fed.wiki.server.plist.

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Disabled</key> <false/> <key>EnvironmentVariables</key> <dict> <key>PATH</key> <string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin</string> </dict> <key>Label</key> <string>fedwiki</string> <key>ProgramArguments</key> <array> <string>/usr/local/bin/wiki</string> <string>-p</string> <string>3000</string> </array> <key>RunAtLoad</key> <true/> </dict> </plist>