From 3971e02b6e41fdb9aa274cc88fb25df3eecbca5d Mon Sep 17 00:00:00 2001 From: maoerpet Date: Thu, 16 Jan 2025 19:30:26 +0800 Subject: [PATCH] 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: Heng Wang --- utils/syncthing/Makefile | 6 +++--- utils/syncthing/files/syncthing.conf | 2 +- utils/syncthing/files/syncthing.init | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/syncthing/Makefile b/utils/syncthing/Makefile index 149c3b63c8061..55190523f43ea 100644 --- a/utils/syncthing/Makefile +++ b/utils/syncthing/Makefile @@ -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) diff --git a/utils/syncthing/files/syncthing.conf b/utils/syncthing/files/syncthing.conf index 193f5e9ea8bdb..6c388cc871da1 100644 --- a/utils/syncthing/files/syncthing.conf +++ b/utils/syncthing/files/syncthing.conf @@ -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 diff --git a/utils/syncthing/files/syncthing.init b/utils/syncthing/files/syncthing.init index 9fa1ddf402320..6cc907c284102 100644 --- a/utils/syncthing/files/syncthing.init +++ b/utils/syncthing/files/syncthing.init @@ -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"