Skip to content

Instantly share code, notes, and snippets.

@badnetmask
Created February 3, 2025 05:27
Show Gist options
  • Save badnetmask/9cf1e9418da9684d2d68738b505ced73 to your computer and use it in GitHub Desktop.
Save badnetmask/9cf1e9418da9684d2d68738b505ced73 to your computer and use it in GitHub Desktop.
[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