Add example for Mac OS X background running

This commit is contained in:
Jakob Borg 2014-11-24 13:46:38 +01:00
parent a9544ca890
commit 2e68ee5c8b
2 changed files with 47 additions and 0 deletions

View File

@ -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.

View File

@ -0,0 +1,30 @@
<?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.syncthing</string>
<key>ProgramArguments</key>
<array>
<string>/Users/jb/bin/syncthing</string>
</array>
<key>EnvironmentVariables</key>
<dict>
<key>HOME</key>
<string>/Users/jb</string>
<key>STNORESTART</key>
<string>1</string>
</dict>
<key>KeepAlive</key>
<true/>
<key>LowPriorityIO</key>
<true/>
<key>ProcessType</key>
<string>Background</string>
</dict>
</plist>