forge
Clone
https://git.tahinli.com/Tahinli/forge.git
0 watching0 forksRustAGPL-3.010.2 MiB197fa34Tahinli1 month ago68 commits
| 1 | [Unit] |
| 2 | Description=forge CI runner |
| 3 | After=network-online.target |
| 4 | Wants=network-online.target |
| 5 | # Crash loops stop the unit: 3 starts within 60s, then it enters failed and OnFailure runs the rollback. |
| 6 | StartLimitIntervalSec=60 |
| 7 | StartLimitBurst=3 |
| 8 | OnFailure=forge-runner-rollback.service |
| 9 | |
| 10 | [Service] |
| 11 | ExecStart=%h/bin/forge runner run --config %h/.config/forge-runner/runner.toml |
| 12 | # A self-update exits with code 75. |
| 13 | Restart=on-failure |
| 14 | # Exit 75 is a deliberate restart into a new binary, not a failure: no OnFailure rollback. |
| 15 | SuccessExitStatus=75 |
| 16 | RestartForceExitStatus=75 |
| 17 | RestartSec=10 |
| 18 | TimeoutStopSec=120 |
| 19 | |
| 20 | [Install] |
| 21 | WantedBy=default.target |