Ubuntu upstart script for 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 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