Ansible-ForgejoRunner/roles/forgejoRunner/templates/forgejo-runner.service.j2

19 lines
413 B
Text
Raw Normal View History

2024-11-25 19:02:35 -07:00
[Unit]
Description=Forgejo Runner
Documentation=https://forgejo.org/docs/latest/admin/actions/
After=docker.service
[Service]
ExecStart=forgejo-runner daemon
ExecReload=/bin/kill -s HUP $MAINPID
# This user and working directory must already exist
User={{ forgejoRunner_user }}
WorkingDirectory=/home/{{ forgejoRunner_user }}
Restart=on-failure
TimeoutSec=0
RestartSec=10
[Install]
WantedBy=multi-user.target