syncthing: enable via config, lower priority, cleanup

Added the ability to enable/disable via a config file;
the default is enabled for backwards compatibility.

This is an additional service, so running it the
same priority as dnsmasq, etc does not make sense.

Added USE_PROCD=1

"done" starts at "START=95", so this should start earlier

Added STOP=10 to stop syncthing early

Compile-tested on: ipq806x, ipq40xx
Runtime-tested on: ipq806x, ipq40xx

Signed-off-by: Marc Benoit <marcb62185@gmail.com>
This commit is contained in:
Marc Benoit
2020-03-01 12:30:06 -05:00
parent 3e0e16ec75
commit 6f6877460a
3 changed files with 20 additions and 5 deletions
+6 -2
View File
@@ -1,3 +1,7 @@
config syncthing 'syncthing'
option gui_address 'http://127.0.0.1:8384'
option home '/etc/syncthing/'
option enabled '0'
option gui_address 'http://127.0.0.1:8384'
option home '/etc/syncthing/'