# Installed by install.sh, which fills in the @...@ values. Based on # upstream's examples/systemd/gitea-runner.service. [Unit] Description=Gitea Actions runner (stprunner) Documentation=https://gitea.com/gitea/runner After=network-online.target docker.service Wants=network-online.target # Wants, not Requires: a no-op on hosts without Docker. Wants=docker.service [Service] Type=simple # Host-mode jobs run as this user with its groups (docker), HOME and SSH key. User=@USER@ WorkingDirectory=@STATE@ ExecStart=@BIN@ daemon --config @STATE@/config.yaml # Also covers Gitea being unreachable at boot, so no wait loop is needed. Restart=always RestartSec=10s # Let running jobs finish; keep in sync with runner.shutdown_timeout. KillMode=mixed TimeoutStopSec=3h [Install] WantedBy=multi-user.target