syncthing: Update to 1.29.2 and Change logfile path
authorYun Wang <maoerpet@foxmail.com>
Mon, 20 Jan 2025 08:58:32 +0000 (16:58 +0800)
committerTianling Shen <cnsztl@gmail.com>
Tue, 21 Jan 2025 06:34:59 +0000 (14:34 +0800)
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>
utils/syncthing/Makefile
utils/syncthing/files/syncthing.conf
utils/syncthing/files/syncthing.init

index 149c3b63c8061c5fd542b5f9d200fb8f0158c40f..55190523f43ea17f27a75804dc52c31d07b1106c 100644 (file)
@@ -1,12 +1,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=syncthing
-PKG_VERSION:=1.27.1
-PKG_RELEASE:=2
+PKG_VERSION:=1.29.2
+PKG_RELEASE:=1
 
 PKG_SOURCE:=syncthing-source-v$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://github.com/syncthing/syncthing/releases/download/v$(PKG_VERSION)
-PKG_HASH:=5c7b0456e50c8a2e4c9767727c4139558ba95573a276273a1730a903e0a73834
+PKG_HASH:=c7b6bc36af1af6f1cb304f4ec4c16743760ef6e8b3586f31dc11439d5d5fd427
 
 PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/$(PKG_NAME)
 
index 193f5e9ea8bdb0a6e369d35e9e02decfd2b73bf4..6c388cc871da13759e642561d91595a70e10c587 100644 (file)
@@ -24,7 +24,7 @@ config syncthing 'syncthing'
        # Running as 'root' is possible, but not recommended
        option user 'syncthing'
 
-       option logfile '/etc/syncthing/syncthing.log'
+       option logfile '/var/log/syncthing.log'
        option log_max_old_files 7
        # Size in bytes
        option log_max_size 1048576
index 9fa1ddf4023209135d7791b0d0b83750769b24a4..6cc907c284102b38a49608a72393eaedd89a2214 100644 (file)
@@ -48,7 +48,7 @@ start_service() {
        local enabled=0
        local gui_address="http://0.0.0.0:8384"
        local home="/etc/syncthing"
-       local logfile="/etc/syncthing/syncthing.log"
+       local logfile="/var/log/syncthing.log"
        local macprocs=0
        local nice=0
        local user="syncthing"