15 Commits

Author SHA1 Message Date
George Sapkin
d047b4c050 syncthing: fix maxprocs config option name
Map old config option "macprocs" to new one.

Signed-off-by: George Sapkin <george@sapk.in>
2025-11-01 08:29:11 +02:00
George Sapkin
e04e9eda6f syncthing: improve argument handling readability
Remove reduntant checks when making directories.

Signed-off-by: George Sapkin <george@sapk.in>
2025-11-01 08:29:11 +02:00
George Sapkin
507c5c91b6 syncthing: bump to 2.0.9
Major version change that switches DB backend from
LevelDB to SQLite. Requires golang 1.24+.

- improve syncthing argument parsing to be more
  robust
- remove unused and add updated config options

Changelog: https://github.com/syncthing/syncthing/releases/tag/v2.0.0
Changelog: https://github.com/syncthing/syncthing/releases/tag/v2.0.1
Changelog: https://github.com/syncthing/syncthing/releases/tag/v2.0.2
Changelog: https://github.com/syncthing/syncthing/releases/tag/v2.0.3
Changelog: https://github.com/syncthing/syncthing/releases/tag/v2.0.4
Changelog: https://github.com/syncthing/syncthing/releases/tag/v2.0.5
Changelog: https://github.com/syncthing/syncthing/releases/tag/v2.0.6
Changelog: https://github.com/syncthing/syncthing/releases/tag/v2.0.7
Changelog: https://github.com/syncthing/syncthing/releases/tag/v2.0.8
Changelog: https://github.com/syncthing/syncthing/releases/tag/v2.0.9
Signed-off-by: George Sapkin <george@sapk.in>

wip

Signed-off-by: George Sapkin <george@sapk.in>
2025-09-21 14:20:53 +03:00
George Sapkin
d75075ce8e syncthing: improve relay argument parsing
Fixes: 47644ba46 ("syncthing: fix discovery and relay extra args")
Signed-off-by: George Sapkin <george@sapk.in>
2025-08-24 19:43:57 +03:00
George Sapkin
6ccb3b6174 syncthing: improve discovery argument parsing
Fixes: 47644ba46 ("syncthing: fix discovery and relay extra args")
Signed-off-by: George Sapkin <george@sapk.in>
2025-08-24 19:43:57 +03:00
George Sapkin
47644ba468 syncthing: fix discovery and relay extra args
Update configuration option examples.

Fixes: #26952
Signed-off-by: George Sapkin <george@sapk.in>
2025-08-06 21:54:28 +08:00
George Sapkin
cd142a1ba8 syncthing: fix relay and discovery args and permissions
Fixes: #26829
Signed-off-by: George Sapkin <george@sapk.in>
2025-07-02 08:03:42 +02:00
Yun Wang
85fa8cfe0b syncthing: Update to 1.29.2 and Change logfile path
Update to 1.29.2 and Change logfile path from /etc/syncthing/syncthing
log to /var/log/syncthing.log.
This utilizes tmpfs (memory-based storage) to prevent disk usage growth
caused by log file accumulation during extended operation.

Benefits:
- Avoids storage saturation from excessive log growth.
- Aligns with best practices for temporary log management.
- For systems using flash storage (e.g., SSDs or eMMC), storing logs in
  tmpfs avoids flash memory wear caused by frequent writes to
  /etc/syncthing.

Signed-off-by: Yun Wang <maoerpet@foxmail.com>
2025-01-21 14:34:59 +08:00
Xiang W
ed41a9d850 syncthing: fix wrong group name in syncthing.init
The group does not always have the same name as user, and when I try
to run syncthing with nobody I get an error. Since nobody belongs to
the group nogroup, I added some code to find out which group user
belongs to.

Signed-off-by: Xiang W <wxjstz@126.com>
2024-01-02 15:25:19 -08:00
Eric Fahlgren
6849a9df90 syncthing: fix duplicate command line parameters on service
- This patch fixes 9d17ba1 and #22760

Signed-off-by: Eric Fahlgren <ericfahlgren@gmail.com>
2023-12-04 08:25:20 -08:00
Van Waholtz
9d17ba1a93 syncthing: add stdiscosrv and strelaysrv
Signed-off-by: Van Waholtz <brvphoenix@gmail.com>
2022-11-04 13:13:43 -07:00
Alberto Bursi
28bcd19557 syncthing: increase inotify limit
default inotify limits at 8k are
low for serious usage
and the GUI shows errors like
"Failed to start filesystem watcher
for folder XXXX"
increase them with this config file
as instructed by syncthing's FAQ.
https://docs.syncthing.net/users/
faq.html#inotify-limits

Signed-off-by: Alberto Bursi <bobafetthotmail@gmail.com>
[bumped PKG_RELEASE]
Signed-off-by: Paul Spooren <mail@aparcar.org>
2020-07-04 20:13:49 -10:00
Marc Benoit
a9443eb0eb 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>
2020-03-24 10:36:51 -10:00
Marc Benoit
6f6877460a 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>
2020-03-01 18:53:27 -05:00
Paul Spooren
373d3b2420 syncthing: add package
Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-08-21 15:21:36 -10:00