summaryrefslogtreecommitdiff
path: root/units/tf2-novemen.yaml.example
diff options
context:
space:
mode:
authorauric <auric@japegames.com>2026-02-22 22:19:19 -0600
committerauric <auric@japegames.com>2026-02-22 22:19:19 -0600
commit006d64e16fb7226596961a48776fe4ddabdba0fe (patch)
treed30abc7e3fea7b3ef66e6d2eaf5788f78c44afd9 /units/tf2-novemen.yaml.example
parent7ff4624e67a6452f77d330c84b2ce6aee900b638 (diff)
units: update tf2 example to use log_dir/log_patternHEADmaster
Switch the default log config to directory-watch mode, which handles TF2's per-map log rotation automatically. Keep the old logs: symlink approach as a commented alternative. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'units/tf2-novemen.yaml.example')
-rw-r--r--units/tf2-novemen.yaml.example11
1 files changed, 9 insertions, 2 deletions
diff --git a/units/tf2-novemen.yaml.example b/units/tf2-novemen.yaml.example
index a44360a..c0dcf51 100644
--- a/units/tf2-novemen.yaml.example
+++ b/units/tf2-novemen.yaml.example
@@ -18,8 +18,15 @@ health:
port: 27015
timeout_ms: 5000
-logs:
- - /ded/tf/novemen/tf2/logs/service.log
+# TF2 creates a new timestamped log file on each map change (L0222000.log,
+# L0222001.log, ...). Use log_dir + log_pattern so umbrella auto-switches
+# to the newest file without needing a SIGHUP.
+log_dir: /ded/tf/novemen/tf2/logs
+log_pattern: "L???????.log"
+
+# Alternatively, use a fixed symlink updated by your startup script:
+# logs:
+# - /ded/tf/novemen/tf2/logs/current.log
# Optional: path to any executable that reads stdin and writes to stdout.
# Umbrella pipes raw log output through it before displaying/buffering.