# Why does Rust keep restarting after a crash?

[Rust server guides](https://rustsc.com/learn/index.html.md) / [Troubleshooting](https://rustsc.com/learn/troubleshooting/index.html.md)

If Rust repeatedly exits at the same point in startup, pause automatic retries while you check the first failure. Another attempt will usually repeat the same failure until its cause changes.

## First run and repeat run

In a port conflict, the first startup log records a port-in-use error. The service manager announces a restart, then the new game process reports the same error. Read from launch to exit to find the original failure. Check what is already listening or which other game starts first.

## If retries stop

On a systemd host, check the unit’s logs to see whether repeated starts reached its limit. The absence of another attempt says little about whether the first error went away.

## Run once after correcting the cause

Keep the service stopped with its own control while you correct the failure. Start it manually once, wait for a successful join and verify it stays up before handing recovery back to the service manager.

## Sources

- [systemd service reference](https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html)
- [systemd journalctl reference](https://www.freedesktop.org/software/systemd/man/latest/journalctl.html)

## Related resources

- [What a message means and what to do](https://rustsc.com/support/guides/fix-common-problems/index.html.md)

---

HTML version: https://rustsc.com/learn/troubleshooting/automatic-recovery-keeps-restarting-rust/
