syncthing: enable via config, lower priority, cleanup
authorMarc Benoit <marcb62185@gmail.com>
Sun, 1 Mar 2020 17:30:06 +0000 (12:30 -0500)
committerPaul Spooren <mail@aparcar.org>
Mon, 2 Mar 2020 01:36:00 +0000 (15:36 -1000)
commita7d3b91ce98e1a2ea903eb907093fa6a276a45eb
tree078f4bea947efb8fe28ed8ea96b90e475157e902
parent0b9578a1deef7efe57f26b4ec217c39245045ae8
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>
(cherry picked from commit 6f6877460a775a75f16154f2d75944bf91770f0d)
utils/syncthing/Makefile
utils/syncthing/files/etc/config/syncthing
utils/syncthing/files/etc/init.d/syncthing