mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-14 17:24:04 +00:00
b40bb64612
Upstart as the init system.
22 lines
590 B
Plaintext
22 lines
590 B
Plaintext
# 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
|