Skip to content

Commit

Permalink
syncthing: Update to 1.29.2 and Change logfile path
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
AutoCONFIG committed Jan 17, 2025
1 parent d91b062 commit 3971e02
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions utils/syncthing/Makefile
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 1 addition & 1 deletion utils/syncthing/files/syncthing.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion utils/syncthing/files/syncthing.init
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3971e02

Please sign in to comment.