forge
Explore
Log in

Don't you dare go Hollow

forge

Clone
★ 0

0 watching0 forksRustAGPL-3.07.1 MiB490f099Tahinli7 hours ago322 commits

forge.service23 lines, 619 bytesHistoryRawDownload
1[Unit]
2Description=forge
3After=network-online.target
4# Crash loops stop the unit: 3 starts within 60s, then it enters failed and OnFailure runs the rollback.
5StartLimitIntervalSec=60
6StartLimitBurst=3
7OnFailure=forge-rollback.service
8
9[Service]
10WorkingDirectory=%h
11Environment=FORGE_CONFIG=%h/config/forge.toml
12ExecStart=%h/bin/forge serve
13# A self-update exits with code 75.
14Restart=on-failure
15# Exit 75 is a deliberate restart into a new binary, not a failure: no OnFailure rollback.
16SuccessExitStatus=75
17RestartForceExitStatus=75
18RestartSec=2
19NoNewPrivileges=yes
20LimitNOFILE=65536
21
22[Install]
23WantedBy=default.target