Created
May 13, 2014 11:48
-
-
Save MartinBrugnara/d9025e863be29822377a to your computer and use it in GitHub Desktop.
upstart syncthing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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