diff --git a/etc/macosx-launchd/README.md b/etc/macosx-launchd/README.md new file mode 100644 index 000000000..685c97657 --- /dev/null +++ b/etc/macosx-launchd/README.md @@ -0,0 +1,17 @@ +This directory contains an example for running Syncthing in the +background under Mac OS X. + + 1. Install the `syncthing` binary in a directory called `bin` in your + home directory. + + 2. Edit the `syncthing.plist` file in the two places that refer to your + home directory; that is, replace `/Users/jb` with your actual home + directory location. + + 3. Copy the `syncthing.plist` file to `~/Library/LaunchAgents`. + + 4. Log out and in again, or run `launchctl load + ~/Library/LaunchAgents/syncthing.plist`. + +You probably want to turn off "Start Browser" among the settings to +avoid it opening a browser window on each login. diff --git a/etc/macosx-launchd/syncthing.plist b/etc/macosx-launchd/syncthing.plist new file mode 100644 index 000000000..3112b2600 --- /dev/null +++ b/etc/macosx-launchd/syncthing.plist @@ -0,0 +1,30 @@ + + + + + Label + net.syncthing.syncthing + + ProgramArguments + + /Users/jb/bin/syncthing + + + EnvironmentVariables + + HOME + /Users/jb + STNORESTART + 1 + + + KeepAlive + + + LowPriorityIO + + + ProcessType + Background + +