forge
Clone
https://git.tahinli.com/Tahinli/forge.git
0 watching0 forksRustAGPL-3.010.5 MiB0a2c24cTahinli1 month ago179 commits
| 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. |
| 14 | Restart=on-failure |
| 15 | # Exit 75 is a deliberate restart into a new binary, not a failure: no OnFailure rollback. |
| 16 | SuccessExitStatus=75 |
| 17 | RestartForceExitStatus=75 |
| 18 | RestartSec=2 |
| 19 | NoNewPrivileges=yes |
| 20 | LimitNOFILE=65536 |
| 21 | |
| 22 | [Install] |
| 23 | WantedBy=default.target |