● Server & Claude Code
"Start request repeated too quickly": exit-code, or start-limit-hit
The journal line people paste into a search box is Start request repeated too quickly. On systemd 255.4 that sentence is not one result. A Restart=always unit that crashes, with StartLimitIntervalSec=0 left under [Service], ends Active: failed (Result: exit-code). The same sentence with Result: start-limit-hit showed up when a healthy unit was restarted by hand too many times. I ran both on this machine on 2026-10-19.
The crash loop stays exit-code
Check your unit in the free browser tool, or use its “Try a systemd example” button to see the misplaced-setting warning. The text stays in your browser; nothing is executed or uploaded.
This server runs a long-lived service with Restart=always and the classic "never give up" line, StartLimitIntervalSec=0. It sat in the [Service] section, where systemd ignores it. The unit below is that mistake. ExecStart=/bin/false exits 1 every time.
# sl-wrong.service
[Unit]
Description=demo: StartLimitIntervalSec in the wrong section
[Service]
ExecStart=/bin/false
Restart=always
RestartSec=100ms
StartLimitIntervalSec=0 # ← wrong section
After daemon-reload, systemctl start sl-wrong, and four seconds:
$ systemctl show sl-wrong -p Result -p NRestarts -p ActiveState -p StartLimitIntervalUSec -p StartLimitBurst
Result=exit-code
NRestarts=5
ActiveState=failed
StartLimitIntervalUSec=10s
StartLimitBurst=5
StartLimitIntervalUSec=10s is the default. The 0 in the file never took effect. The journal then says:
sl-wrong.service: Scheduled restart job, restart counter is at 5.
sl-wrong.service: Start request repeated too quickly.
sl-wrong.service: Failed with result 'exit-code'.
Failed to start sl-wrong.service - demo: StartLimitIntervalSec in the wrong section.
systemctl status prints Active: failed (Result: exit-code). A second systemctl start prints Job for sl-wrong.service failed because the control process exited with error code. The journal repeats Start request repeated too quickly. and Failed with result 'exit-code'. It does not say start-limit-hit.
The same unit with the line moved under [Unit] is still going after four seconds. systemd-analyze verify prints nothing for it.
# sl-right.service
[Unit]
Description=demo: StartLimitIntervalSec in [Unit]
StartLimitIntervalSec=0 # ← right section
[Service]
ExecStart=/bin/false
Restart=always
RestartSec=100ms
$ systemctl show sl-right -p Result -p NRestarts -p ActiveState -p StartLimitIntervalUSec -p StartLimitBurst
Result=exit-code
NRestarts=16
ActiveState=activating
StartLimitIntervalUSec=0
StartLimitBurst=5
Result=exit-code here is the last /bin/false, and the unit is activating (auto-restart), not failed. NRestarts=16 is what four seconds of RestartSec=100ms produced. Stop it when you are done looking. StartLimitIntervalSec=0 really does mean retry forever.
Why it matters in practice
The usual trigger is a network outage at boot, with the restarts close together. A service that fails 5 times inside the default 10 second window is then left failed, even after the network comes back. With Restart=always in the file, everyone assumes it will recover. The log line that tells you the limit fired is Start request repeated too quickly. On this systemd version the result field still says exit-code, which is also what a normal crash looks like. The field that shows the 0 was ignored is StartLimitIntervalUSec=10s. How far apart the restarts are decides whether five of them can land in that window.
RestartSec=10 does not print the sentence
Two more /bin/false units, both Restart=always, neither one setting StartLimitIntervalSec. Both showed StartLimitIntervalUSec=10s and StartLimitBurst=5. Each crash logged status=1/FAILURE. That status means the program ran. status=203/EXEC means it did not, and that measurement is a separate note. status=226/NAMESPACE also means it did not run. ProtectSystem=strict is not that code. The runs are at status=226/NAMESPACE. A new file under that setting was Read-only file system, and the oneshot still exited 0. Those runs are at ProtectSystem=strict.
RestartSec=1 reached the limit. The journal said restart counter is at 5, then Start request repeated too quickly., then Failed with result 'exit-code'. After that, systemctl show was:
Result=exit-code
NRestarts=5
ActiveState=failed
ExecMainStatus=1
StartLimitIntervalUSec=10s
StartLimitBurst=5
RestartSec=10 had not printed Start request repeated too quickly when I stopped it. The journal had reached restart counter is at 2 and started a third time. After the stop, systemctl show was Result=success, NRestarts=0, ActiveState=inactive. Those three fields are the stopped unit. The journal is the loop. Widening RestartSec to 10 seconds can hide the sentence while the process is still exiting 1. That is not a fix.
When the result really is start-limit-hit
A unit that is running fine can hit the same journal sentence with the other result. This one has the limit in the right section, and the process is /bin/sleep 60:
# sl-burst.service
[Unit]
Description=demo: restart a running service too fast
StartLimitIntervalSec=30
StartLimitBurst=3
[Service]
ExecStart=/bin/sleep 60
The first three systemctl restart sl-burst commands returned 0, with Result=success and ActiveState=active. The fourth failed. The shell said Job for sl-burst.service failed. It did not say start-limit-hit. The journal and systemctl show did:
sl-burst.service: Start request repeated too quickly.
sl-burst.service: Failed with result 'start-limit-hit'.
Result=start-limit-hit
NRestarts=0
ActiveState=failed
NRestarts stays 0 because those were manual restarts, not Restart=. Pages that tell you to look only for start-limit-hit miss the crash loop above. Pages that tell you the crash loop prints start-limit-hit are describing a different failure than the one systemd 255.4 recorded here.
Clear the counter
systemctl reset-failed sl-wrong does not move the ignored line. It does clear the counter. Measured on the crash-loop unit:
# before
Result=exit-code
NRestarts=5
ActiveState=failed
StartLimitIntervalUSec=10s
# after systemctl reset-failed sl-wrong
Result=success
NRestarts=0
ActiveState=inactive
StartLimitIntervalUSec=10s
The next systemctl start is allowed. One second later the same unit was activating with NRestarts=4, and I stopped it there. StartLimitIntervalUSec was still 10s.
Why the key is in [Unit], and the compat trap
Start rate limiting applies to every way a unit can be started: manual starts, dependencies, timers and sockets, not only service restarts. So the current settings, StartLimitIntervalSec= and StartLimitBurst=, are generic unit settings that belong in [Unit].
The trap comes from backward compatibility. Older systemd put the limit in [Service] under the name StartLimitInterval= (no Sec). systemd 255.4 still honors that legacy spelling in [Service]. I put StartLimitInterval=0 under [Service] on an otherwise identical /bin/false unit: systemd-analyze verify printed nothing, and StartLimitIntervalUSec=0 while the unit was still activating.
[Service]
StartLimitInterval=0 # legacy name, legacy place → StartLimitIntervalUSec=0
StartLimitIntervalSec=0 # new name, legacy place → "Unknown key", ignored
So an old snippet works, but "modernizing" it by adding Sec without moving the line quietly breaks it. That's the version this server had.
Catch it: systemd-analyze verify
Unknown key name 'StartLimitIntervalSec' in section 'Service', ignoring.
That was line 7 of the wrong-section file. The path in front of it is the path you passed to systemd-analyze verify. The right-section unit and the legacy StartLimitInterval=0 unit printed no warning. Run it on every unit you write or generate. This server's agent now does that before installing any unit file. To check the value that's actually in effect:
systemctl show <unit> -p Result -p NRestarts -p ActiveState -p StartLimitIntervalUSec -p StartLimitBurst
The fix
Move the line into [Unit], then daemon-reload. A unit loaded with the line already there shows StartLimitIntervalUSec=0, as sl-right did.
[Unit]
Description=...
After=network-online.target
Wants=network-online.target
StartLimitIntervalSec=0
[Service]
ExecStart=...
Restart=always
RestartSec=10
If "retry forever" is too blunt, keep a limit but set it on purpose. For example, StartLimitIntervalSec=300 with StartLimitBurst=10, plus an OnFailure= unit that alerts you. The free check flags StartLimitIntervalSec under [Service] before the unit is installed. It runs on your machine and does not upload the file. In Claude Code:
claude plugin marketplace add https://testedtemplates.com/code/claude-plugin-marketplace.json
claude plugin install server-lockout-check@testedtemplates
Codex CLI:
codex plugin marketplace add https://testedtemplates.com/code/agent-ops-free.git
codex plugin add server-lockout-check@testedtemplates
Gemini CLI installs the cloned folder. The git URL itself is a shallow fetch, and this site cannot serve that:
git clone https://testedtemplates.com/code/agent-ops-free.git
gemini extensions install ./agent-ops-free --consent
The production-tested remote-control systemd unit (with this StartLimitIntervalSec fix already applied) and the Telegram/backup/preflight scripts used on this server are the Agent Ops Kit ($19). The same unit is written out on the kit page.
Need a VPS to try this on? Everything here was tested on a DigitalOcean Ubuntu 24.04 droplet: get one on DigitalOcean. The DigitalOcean link pays the site owner account credit, not cash. Any other affiliate link may pay a commission. Your price is the same. Disclosure.