Commit graph

6 commits

Author SHA1 Message Date
Marc Benoit
33eda8575b syncthing: configuration cleanup & hardening
Run the service under an unprivileged
user account

The following parameters are now configurable
  niceness
  max concurrency (defaults to number of CPUs)
  user

Added flags "-no-browser"
Disabled in-place upgrades (disabled in the
build already)

Redirected stderr/stdout to syslog

Added support for "reload_config"

Increased "term_timeout" to 15s to give it
plenty of time to shut down gracefully

Properly handled non-existing directories

Removed a softlink that assumes a specific naming
convention in syncthing

Added a comment that using external storage is a
recommend configration

Signed-off-by: Marc Benoit <marcb62185@gmail.com>
[increased package release]
Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit a9443eb0eb)
Tested-by: Marc Benoit <marcb62185@gmail.com>
2020-03-25 08:28:24 -10:00
Paul Spooren
e4c685e5bd syncthing: bump to 1.4.0
Release information:
https://github.com/syncthing/syncthing/releases/tag/v1.4.0

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 3a651638ce)
Tested-by: Marc Benoit <marcb62185@gmail.com>
2020-03-25 08:28:24 -10:00
Paul Spooren
b8dafa4750 syncthing: fixup version detection
Since upstream commit dc92994 the LDFLAGS used for settings the version
(and build host and user) changed resulting in "unknown" versions in
syncthing.

Correct version detection is important for syncthing to assure
compatibility with other running instances. The "unknown" version fails
to communicate and sync with correctly compiled instances.

This patch updates the syncthing Makefile to inject the correct
variables and thereby fixes the version detection in syncthing.

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit b85e387cc2)
Tested-by: Marc Benoit <marcb62185@gmail.com>
2020-03-25 08:28:24 -10:00
Marc Benoit
a7d3b91ce9 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 6f6877460a)
2020-03-01 15:36:00 -10:00
Paul Spooren
653014528d syncthing: bump to 1.3.4
Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 7c1d6571ca)
Tested-By: Marc Benoit <marcb62185@gmail.com> [19.07: R7800/GL-B1300]
2020-03-01 12:21:01 -05:00
Paul Spooren
56af7bcf19 syncthing: add package
Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 373d3b2420)
Tested-By: Marc Benoit <marcb62185@gmail.com> [19.07: R7800/GL-B1300]
2020-03-01 12:20:21 -05:00