Created
May 29, 2014 23:07
-
-
Save z0mbix/25b44e06f323c136045c to your computer and use it in GitHub Desktop.
Example launchd plist for syncthing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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