Skip to content

Instantly share code, notes, and snippets.

@z0mbix
Created May 29, 2014 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save z0mbix/25b44e06f323c136045c to your computer and use it in GitHub Desktop.
Save z0mbix/25b44e06f323c136045c to your computer and use it in GitHub Desktop.
Example launchd plist for syncthing
Create the XML plist file ~/Library/LaunchAgents/net.syncthing.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>Label</key>
<string>net.syncthing</string>
<key>Program</key>
<string>/Users/zombie/bin/syncthing</string>
<key>KeepAlive</key>
<true/>
</dict>
</plist>
Then:
$ launchctl load ~/Library/LaunchAgents/net.syncthing.plist
$ launchctl start net.syncthing
And then your browser should spring to life with http://127.0.0.1:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment