fix(deploy): StartLimit* directives belong in [Unit], not [Service]
systemd 230+ moved StartLimitBurst= and StartLimitIntervalSec= from
[Service] into [Unit] (with the rename from StartLimitInterval=). Putting
them in [Service] makes systemd silently ignore them with a warning to
journalctl: "Unknown key 'StartLimitIntervalSec' in section [Service],
ignoring." — meaning the restart-loop cap I claimed in commit 519567e
wasn't actually applied.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a982995d5b
commit
fc371711ec
1 changed files with 5 additions and 5 deletions
|
|
@ -2,6 +2,11 @@
|
||||||
Description=left4me server instance %i
|
Description=left4me server instance %i
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
Wants=network-online.target
|
Wants=network-online.target
|
||||||
|
# Bound the restart loop. Without these, a persistent ExecStartPre or
|
||||||
|
# ExecStart failure spins indefinitely. Note: these are [Unit]-section
|
||||||
|
# directives (systemd 230+), not [Service].
|
||||||
|
StartLimitBurst=5
|
||||||
|
StartLimitIntervalSec=60s
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
|
@ -29,11 +34,6 @@ ExecStartPre=+/usr/local/libexec/left4me/left4me-overlay mount %i
|
||||||
ExecStart=/var/lib/left4me/installation/srcds_run -game left4dead2 +hostport ${L4D2_PORT} $L4D2_ARGS
|
ExecStart=/var/lib/left4me/installation/srcds_run -game left4dead2 +hostport ${L4D2_PORT} $L4D2_ARGS
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
# Bound the restart loop. Without these, a persistent ExecStartPre or
|
|
||||||
# ExecStart failure spins indefinitely (default systemd has no cap when
|
|
||||||
# Restart= is explicitly set without StartLimit*).
|
|
||||||
StartLimitBurst=5
|
|
||||||
StartLimitIntervalSec=60s
|
|
||||||
|
|
||||||
# Resource control baseline — see docs/superpowers/specs/2026-05-09-l4d2-server-host-perf-baseline-design.md
|
# Resource control baseline — see docs/superpowers/specs/2026-05-09-l4d2-server-host-perf-baseline-design.md
|
||||||
Slice=l4d2-game.slice
|
Slice=l4d2-game.slice
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue