Tahinli/forge
public0 watching
★ 0
| 1 | [Unit] |
| 2 | Description=forge |
| 3 | After=network-online.target |
| 4 | # Crash loops stop the unit: 3 starts within 60s, then it enters failed and OnFailure runs the rollback. |
| 5 | StartLimitIntervalSec=60 |
| 6 | StartLimitBurst=3 |
| 7 | OnFailure=forge-rollback.service |
| 8 | |
| 9 | [Service] |
| 10 | WorkingDirectory=%h |
| 11 | Environment=FORGE_CONFIG=%h/config/forge.toml |
| 12 | ExecStart=%h/bin/forge serve |
| 13 | # A self-update exits with code 75, which is non-zero, so Restart=on-failure restarts it into the new binary. |
| 14 | Restart=on-failure |
| 15 | RestartSec=2 |
| 16 | NoNewPrivileges=yes |
| 17 | LimitNOFILE=65536 |
| 18 | |
| 19 | [Install] |
| 20 | WantedBy=default.target |