Closes forgejo/runner#771. <!--start release-notes-assistant--> <!--URL:https://code.forgejo.org/forgejo/runner--> - other - [PR](https://code.forgejo.org/forgejo/runner/pulls/772): <!--number 772 --><!--line 0 --><!--description UmVzdG9yZSBgY29udHJpYi9mb3JnZWpvLXJ1bm5lci5zZXJ2aWNlYA==-->Restore `contrib/forgejo-runner.service`<!--description--> <!--end release-notes-assistant--> Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/772 Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org> Co-authored-by: ernstki <ernstki@mail.uc.edu> Co-committed-by: ernstki <ernstki@mail.uc.edu>
18 lines
392 B
Desktop File
18 lines
392 B
Desktop File
[Unit]
|
|
Description=Forgejo Runner
|
|
Documentation=https://forgejo.org/docs/latest/admin/actions/
|
|
After=docker.service
|
|
|
|
[Service]
|
|
ExecStart=/usr/local/bin/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
|