Documentation and examples for Ubuntu-like linux systems using
Upstart as the init system.
This commit is contained in:
13
etc/linux-upstart/system/syncthing.conf
Normal file
13
etc/linux-upstart/system/syncthing.conf
Normal file
@@ -0,0 +1,13 @@
|
||||
description "Syncthing"
|
||||
|
||||
start on (local-filesystems and net-device-up IFACE!=lo)
|
||||
stop on runlevel [!2345]
|
||||
|
||||
env STNORESTART=yes
|
||||
env HOME=/home/jake
|
||||
setuid "jake"
|
||||
setgid "jake"
|
||||
|
||||
exec /usr/local/bin/syncthing
|
||||
|
||||
respawn
|
||||
Reference in New Issue
Block a user