This commit is contained in:
parent
ea770fa944
commit
e35780ea63
2 changed files with 20 additions and 2 deletions
18
tools/forgejo-runner.service
Normal file
18
tools/forgejo-runner.service
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
[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=nycki-forgejo
|
||||||
|
WorkingDirectory=/opt/nycki-forgejo
|
||||||
|
Restart=on-failure
|
||||||
|
TimeoutSec=0
|
||||||
|
RestartSec=10
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in a new issue