forked from Telodendria/Telodendria
Update docs/dev/hosting.md
This commit is contained in:
parent
6305f5d76e
commit
fde2b26857
1 changed files with 22 additions and 1 deletions
|
@ -56,4 +56,25 @@ pidfile="/run/act_runner.pid"
|
||||||
|
|
||||||
Don't forget to `chmod +x /etc/init.d/act_runner`.
|
Don't forget to `chmod +x /etc/init.d/act_runner`.
|
||||||
|
|
||||||
Then just `rc-update add act_runner` and `rc-service act_runner start`.
|
Then just `rc-update add act_runner` and `rc-service act_runner start`.
|
||||||
|
|
||||||
|
#### Debian
|
||||||
|
|
||||||
|
In `/etc/systemd/system/act_runner.service`:
|
||||||
|
|
||||||
|
```
|
||||||
|
[Unit]
|
||||||
|
Description=Gitea Actions runner
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/home/runner/act_runner/act_runner daemon
|
||||||
|
ExecReload=/bin/kill -s HUP $MAINPID
|
||||||
|
WorkingDirectory=/home/runner/act_runner
|
||||||
|
TimeoutSec=0
|
||||||
|
RestartSec=10
|
||||||
|
Restart=always
|
||||||
|
User=runner
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
```
|
Loading…
Reference in a new issue