mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2024-12-18 11:52:16 +03:00
6c067bfd76
Apparently, even though my IDE grayed them out, you cannot start a comment mid-line in a systemd configuration file. I really should have tested this :3 Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/274 Reviewed-by: Michael Kriese <michael.kriese@gmx.de> Co-authored-by: Kwonunn <kwonunnx@gmail.com> Co-committed-by: Kwonunn <kwonunnx@gmail.com>
18 lines
377 B
Desktop File
18 lines
377 B
Desktop File
[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=runner
|
|
WorkingDirectory=/home/runner
|
|
Restart=on-failure
|
|
TimeoutSec=0
|
|
RestartSec=10
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|