From d74e40d596215f7e09b28ca98194168b4f578143 Mon Sep 17 00:00:00 2001 From: S Date: Sun, 1 Mar 2026 08:17:14 -0500 Subject: [PATCH] feat: add newsyslog configuration template for Gitea Actions runner --- templates/com.gitea.runner.newsyslog.conf.tpl | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 templates/com.gitea.runner.newsyslog.conf.tpl diff --git a/templates/com.gitea.runner.newsyslog.conf.tpl b/templates/com.gitea.runner.newsyslog.conf.tpl new file mode 100644 index 0000000..662f02d --- /dev/null +++ b/templates/com.gitea.runner.newsyslog.conf.tpl @@ -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