mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 23:12:02 +08:00
bb823a5514
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>
(cherry picked from commit 85fa8cfe0b)
Signed-off-by: George Sapkin <george@sapk.in>
39 lines
1.0 KiB
Plaintext
39 lines
1.0 KiB
Plaintext
|
|
config syncthing 'syncthing'
|
|
option enabled '0'
|
|
|
|
option gui_address 'http://0.0.0.0:8384'
|
|
|
|
# Use internal flash for evaluation purpouses. Use external storage
|
|
# for production.
|
|
# This filesystem must either support ownership/attributes or
|
|
# be readable/writable by the user specified in
|
|
# 'option user'.
|
|
# Consult syslog if things go wrong.
|
|
option home '/etc/syncthing'
|
|
|
|
# Changes to "niceness"/macprocs are not picked up by "reload_config"
|
|
# nor by "restart": the service has to be stopped/started
|
|
# for those to take effect
|
|
option nice '19'
|
|
|
|
# 0 to match the number of CPUs (default)
|
|
# >0 to explicitly specify concurrency
|
|
option macprocs '0'
|
|
|
|
# Running as 'root' is possible, but not recommended
|
|
option user 'syncthing'
|
|
|
|
option logfile '/var/log/syncthing.log'
|
|
option log_max_old_files 7
|
|
# Size in bytes
|
|
option log_max_size 1048576
|
|
|
|
# # CLI options with no value should be defined as booleans and theirs
|
|
# # names should be prefixed with '_'.
|
|
option _no_default_folder '1'
|
|
|
|
# # Extra settings
|
|
# list _ 'verbose'
|
|
|