syncthing.plist 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3. <!--
  4. Make sure the "syncthing" executable is located at ~/bin/syncthing.
  5. Replace the string "USERNAME" in this file with your username, such as "jb".
  6. Copy this file to ~/Library/LaunchAgents/syncthing.plist.
  7. Execute "launchctl load ~/Library/LaunchAgents/syncthing.plist".
  8. -->
  9. <plist version="1.0">
  10. <dict>
  11. <key>Label</key>
  12. <string>net.syncthing.syncthing</string>
  13. <key>ProgramArguments</key>
  14. <array>
  15. <string>/Users/USERNAME/bin/syncthing</string>
  16. </array>
  17. <key>EnvironmentVariables</key>
  18. <dict>
  19. <key>HOME</key>
  20. <string>/Users/USERNAME</string>
  21. <key>STNORESTART</key>
  22. <string>1</string>
  23. </dict>
  24. <key>KeepAlive</key>
  25. <true/>
  26. <key>LowPriorityIO</key>
  27. <true/>
  28. <key>ProcessType</key>
  29. <string>Background</string>
  30. <key>StandardOutPath</key>
  31. <string>/Users/USERNAME/Library/Logs/Syncthing.log</string>
  32. <key>StandardErrorPath</key>
  33. <string>/Users/USERNAME/Library/Logs/Syncthing-Errors.log</string>
  34. </dict>
  35. </plist>