forge
ExploreLog in

Tahinli/forge

public
0 watching
★ 0
555 bytes
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, which is non-zero, so Restart=on-failure restarts it into the new binary.
14Restart=on-failure
15RestartSec=2
16NoNewPrivileges=yes
17LimitNOFILE=65536
18
19[Install]
20WantedBy=default.target