Skip to content

Instantly share code, notes, and snippets.

@yusufhm
Last active August 29, 2015 14:10
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 yusufhm/6d51e904b4ef8fd2dbc5 to your computer and use it in GitHub Desktop.
Save yusufhm/6d51e904b4ef8fd2dbc5 to your computer and use it in GitHub Desktop.
Ubuntu upstart script for syncthing
description "Syncthing P2P sync service"
start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [!2345]
env STNORESTART=yes
env HOME=/home/demouser
setuid "demouser"
setgid "demouser"
exec /usr/local/bin/syncthing
respawn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment