[Unit] Description=Gitea Actions runner Documentation=https://gitea.com/gitea/runner After=network-online.target Wants=network-online.target # Uncomment when jobs use the local Docker daemon: # After=docker.service # Requires=docker.service [Service] Type=simple # Adjust the binary path, config path and working directory to your setup. # The working directory is where the .runner registration file is read from # unless runner.file is set to an absolute path in the config. ExecStart=/usr/local/bin/gitea-runner daemon --config /etc/gitea-runner/config.yaml WorkingDirectory=/var/lib/gitea-runner User=gitea-runner Group=gitea-runner # Restart automatically so the runner survives transient failures, e.g. the # Gitea instance being temporarily unreachable at startup. Restart=on-failure RestartSec=5s # Allow running jobs to finish before the runner is stopped. Keep this in sync # with runner.shutdown_timeout in the config. TimeoutStopSec=3h [Install] WantedBy=multi-user.target