Created
February 3, 2025 05:27
-
-
Save badnetmask/9cf1e9418da9684d2d68738b505ced73 to your computer and use it in GitHub Desktop.
Collateral for my blog post: https://mteixeira.wordpress.com/2025/02/02/my-self-hosted-forgejo-runner-setup/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Forgejo Runner | |
Documentation=https://forgejo.org/docs/latest/admin/actions/ | |
After=docker.service | |
[Service] | |
ExecStart=/usr/local/bin/forgejo-runner daemon --config /home/runner/config.yaml | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment