Upstart script to background start SyncThing on Ubuntu


(Martijn Lievaart) #1

/etc/init/syncthing.conf

author "Martijn Lievaart <m (at) rtij.nl>"
description "SyncThing"
exec su -c '/usr/bin/syncthing --no-browser' martijn
#
# We could start earlier, but let's spread initial load a bit
#
start on (local-filesystems and net-device-up IFACE!=lo)

Console goes to /var/log/upstart/syncthing.log. Obviously you need to substitute your own username, and obviously, you need to configure syncthing.

Hope this helps somebody, Martijn “M4” Lievaart


Videos about Syncthing