docs(installer): running-shard detection covers every launch shape (installer#47)

PLAN.md records how the check resolves a relative ServUO.exe against the
process's working directory, fails closed when that cannot be read, and
skips thread entries. INSTALL.md troubleshooting gains the new refusal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014HJEmd5sBSpNXicS4gmT1t
This commit is contained in:
2026-11-27 01:58:13 -06:00
parent baff43a9fa
commit cdd5862621
2 changed files with 12 additions and 3 deletions

View File

@@ -554,9 +554,17 @@ not already settled above:
- **The shard-running check matches by path, not by process name.** `deploy.ps1` can look for a
process called `ServUO` because it only runs on Windows; on Linux the same shard is `mono` or
`dotnet` with `ServUO.exe` as an argument, and a name match would answer "not running" for a live
shard — the one wrong answer that corrupts `Scripts.dll`. The installer requires a process whose
executable or command line names *both* the tree being deployed into and `ServUO.exe`, so a second
shard — the one wrong answer that corrupts `Scripts.dll`. The installer requires a process that
names `ServUO.exe` *and* whose assembly resolves into the tree being deployed into, so a second
shard elsewhere on the host does not block this deploy, and the installer never matches itself.
"Resolves into the tree" covers every launch shape (installer#47): `ServUO.exe` as the
executable (Windows) is decided by its path; `mono /abs/ServUO.exe` by the command line; and
`mono ServUO.exe` started from inside the root — systemd `WorkingDirectory=`, tmux — by resolving
the relative argument against the process's **working directory**, where the root is the only
place it appears. When that working directory cannot be read (another user's process, installer
not run as root) the check **fails closed**: install/update refuse, saying they could not check
and to stop the process or re-run with `sudo`; `doctor` counts only certain matches. Linux lists
each thread beside its process; threads are skipped so the refusal names the real pid.
- **ServUO's version is read from `Server/AssemblyInfo.cs`**, not from `ServUO.exe`'s PE metadata:
it is the same *source* tree the patch tier diffs against, needs no dependency, and works
identically on Linux. `57.4.0.0` and `57.4` are normalized to compare equal. An unreadable version