feat: add newsyslog configuration template for Gitea Actions runner

This commit is contained in:
S
2026-03-01 08:17:14 -05:00
parent e9940b75ee
commit d74e40d596

View File

@@ -0,0 +1,11 @@
# newsyslog rotation for Gitea Actions runner: ${RUNNER_NAME}
# Rendered from com.gitea.runner.newsyslog.conf.tpl
# Installed to /etc/newsyslog.d/ by manage_runner.sh (add_native_runner)
#
# Fields: logfile owner:group mode count size when flags
# count=5 — keep 5 rotated archives
# size=51200 — rotate when log exceeds 50 MB (size in KB)
# when=* — also check daily (default newsyslog interval)
# flags=GN — G=gzip old logs, N=create new file if missing
${RUNNER_DATA_PATH}/runner.out.log :staff 644 5 51200 * GN
${RUNNER_DATA_PATH}/runner.err.log :staff 644 5 51200 * GN