Skip to content

Commit

Permalink
syncthing: change Syncthing logfile location to /var/log/syncthing.lo…
Browse files Browse the repository at this point in the history
…g for in-memory storage

Changed 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.

- Avoids storage saturation from excessive log growth.
- Aligns with best practices for temporary log management.

Signed-off-by: maoerpet <[email protected]>
  • Loading branch information
AutoCONFIG committed Jan 15, 2025
1 parent c7252eb commit 460016e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 460016e

Please sign in to comment.