ModernUO/Projects
Kamron Batman eff9de0281
feat: optional restart exit code so a supervisor owns the relaunch (#2705)
Fixes #2700 (with #2704)

A restart (`restart` console command, `AutoRestart`, `CrashGuard`) launches a copy of the server and exits. That copy is detached from the console it was started from: the shell takes the terminal back and console commands stop working. Under systemd or in a container it's killed as soon as the original process exits.

- New setting `server.restartExitCode` (off by default). When it's set, a restart saves and shuts down as usual and then exits with that code, so a shell loop, systemd unit or container restart policy can start the server again on the same console. Values outside 1–255 log a warning and fall back to the current behaviour.
- Fixes `CrashGuard` crash recovery never restarting the server. Since #1809, `Kill()` only records the request, and the unhandled-exception path called `DoKill()` without it.
- Documents systemd, Docker and shell-loop setups in `dev-docs/server-requirements.md`.
2026-10-13 21:18:25 -07:00
..
Application fix: Bumps dependencies. (#2531) 2026-07-14 15:17:55 -07:00
BuildTool feat: Bumps dependencies. Introduces Serialization Generator v3 (#2584) 2026-08-22 15:48:53 -07:00
Logger fix: Bumps dependencies. (#2531) 2026-07-14 15:17:55 -07:00
Server feat: optional restart exit code so a supervisor owns the relaunch (#2705) 2026-10-13 21:18:25 -07:00
Server.Tests feat: scope container child removal, skip-serialize and linearly delete container children (#2676) 2026-10-09 22:21:50 -07:00
UOContent feat: optional restart exit code so a supervisor owns the relaunch (#2705) 2026-10-13 21:18:25 -07:00
UOContent.Tests fix: bound and purge NPC vendor buyback stock (#2677) 2026-10-09 22:56:39 -07:00