Documentation and examples for Ubuntu-like linux systems using

Upstart as the init system.
This commit is contained in:
Jake Peterson committed 2015-10-23 22:37:35 -06:00
1 parent 7b5ab29a6d
commit b40bb64612
3 files changed
+50

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
# Location of the syncthing executable
env SYNCTHING_EXE="/usr/local/bin"
# Set the name of the application
description "Syncthing"
# Start syncthing you login to your desktop
start on desktop-start
# Stop syncthing you logout of your desktop
stop on desktop-end
# Set STNORESTART to yes to have Upstart monitor the process instead
# of having a separate syncthing process do the monitoring
env STNORESTART=yes
# If Upstart detects syncthing has failed - it should restart it
respawn
# the syncthing command Upstart is to execute when it is started up
exec $SYNCTHING_EXE -no-browser