# gitea-runner.service runs the Gitea Actions runner, which runs each job in a # container on root's podman. gitea-runner.path starts it once it is # registered. It runs as root: whoever has podman's socket is root anyway. # # TimeoutStopSec is a bit longer than runner.shutdown_timeout in # /etc/gitea-runner/config.yaml, so running jobs can finish on stop. [Unit] Description=Gitea Actions runner Wants=network-online.target After=network-online.target podman.socket Requires=podman.socket [Service] # HOME holds the cache of actions/cache, next to the registration. Environment=HOME=/var/lib/gitea-runner Environment=DOCKER_HOST=unix:///run/podman/podman.sock ExecStart=/usr/bin/gitea-runner -c /etc/gitea-runner/config.yaml daemon Restart=on-failure RestartSec=10s TimeoutStopSec=65min