forgejo_runner(role): create role for setting up Forgejo Runner install
This commit is contained in:
parent
6e61fe7886
commit
d4a1dee108
9 changed files with 267 additions and 0 deletions
19
roles/forgejo_runner/files/forgejo-runner.service
Normal file
19
roles/forgejo_runner/files/forgejo-runner.service
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# Source: https://code.forgejo.org/forgejo/runner/src/branch/main/contrib/forgejo-runner.service
|
||||
[Unit]
|
||||
Description=Forgejo Runner
|
||||
Documentation=https://forgejo.org/docs/latest/admin/actions/
|
||||
After=docker.service
|
||||
Requires=docker.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/bin/forgejo-runner daemon -c /etc/forgejo-runner-config.yaml
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
|
||||
User=runner
|
||||
WorkingDirectory=/home/runner
|
||||
Restart=on-failure
|
||||
TimeoutSec=0
|
||||
RestartSec=10
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue