mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 17:04:32 +04:00
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>
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user