deploy_gitea_runner/templates/gitea-runner.service.j2

18 lines
447 B
Django/Jinja

# {{ ansible_managed }}
[Unit]
Description=Gitea Actions runner
Documentation=https://gitea.com/gitea/act_runner
WantedBy=multi-user.target
[Service]
ExecStart={{ deploy_gitea_runner_path }} daemon --config {{ deploy_gitea_host_config_directory }}/config.yaml
ExecReload=/bin/kill -s HUP $MAINPID
WorkingDirectory={{ deploy_gitea_runner_directory }}
TimeoutSec=0
RestartSec=10
Restart=always
User=act_runner
[Install]
WantedBy=multi-user.target