Skip to content

Instantly share code, notes, and snippets.

@yusufhm
Last active August 29, 2015 14:10
Embed
What would you like to do?
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