Ian Glen 32535a5f02 Added plist editing instructions to launchd readme | 10 years ago | |
---|---|---|
.. | ||
Readme.md | 10 years ago | |
com.cjdelisle.cjdns.plist | 10 years ago |
LaunchDaemon for cjdns on OS X.
Copy to /Library/LaunchDaemons
Set permissions and ownership with:
sudo chmod 644 /Library/LaunchDaemons/com.cjdelisle.cjdns.plist
sudo chown root:wheel /Library/LaunchDaemons/com.cjdelisle.cjdns.plist
Edit /usr/local/bin/cjdroute in the plist to match where you have cjdroute (/usr/local/bin/cjdroute is recommended). Edit /etc/cjdroute.conf in the plist to match where you have the config file (/etc/cjdroute.conf is recommended).
Make sure config file /etc/cjdroute.conf exists and "noBackground":1 is set so cjdroute doesn't daemonize automatically.
Then load the plist with launchctl:
sudo launchctl load /Library/LaunchDaemons/com.cjdelisle.cjdns.plist