Skip to content

Instantly share code, notes, and snippets.

@szaydel
Forked from MartinBrugnara/syncthing.conf
Created July 1, 2014 19:25
Show Gist options
  • Save szaydel/de9ea112a4709ef190fd to your computer and use it in GitHub Desktop.
Save szaydel/de9ea112a4709ef190fd to your computer and use it in GitHub Desktop.
description "Syncthing deamon"
start on (starting ufw)
stop on [!023456]
env STNORESTART=yes
env HOME=/srv/sync
respawn
setuid syncthing
setgid syncthing
exec /srv/sync/syncthing -home=/srv/sync/.config/syncthing >> /var/log/syncthing.log 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment