Files
setup-gitea-runner/templates/runner.service.j2
2025-01-26 20:10:54 +01:00

16 lines
383 B
Django/Jinja

[Unit]
Description=Gitea Actions runner
Documentation=https://gitea.com/gitea/act_runner
After=docker.service
[Service]
ExecStart={{ RUNNER_DIR }}/{{ RUNNER_NAME }} daemon --config {{ RUNNER_DIR }}/config.yml
ExecReload=/bin/kill -s HUP $MAINPID
WorkingDirectory={{ RUNNER_DIR }}
TimeoutSec=0
RestartSec=10
Restart=always
User={{ RUNNER_USER }}
[Install]
WantedBy=multi-user.target