Exit with status 1 when the web server cannot listen (closes #73)
check / check (push) Canceled after 0s

Server.Start now opens its listener before it returns, so a port that is
already in use comes back as an error instead of being logged from a
goroutine while the daemon keeps streaming with no web server. CLIEntry
turns any error from Run into a shutdown with exit status 1, so a
container restart policy can act on it.

Model: opus-5-5
This commit is contained in:
2026-10-14 13:06:47 +00:00
parent 00e51d284f
commit 278b9e658c
4 changed files with 56 additions and 4 deletions
+4
View File
@@ -27,6 +27,10 @@ real 5 GiB limit (https://git.eeqj.de/sneak/routewatch/issues/3).
# Completed Steps
- 2026-10-14: the daemon exits with status 1 when it cannot listen on its
port, for example because the port is in use, instead of running on without
its web server; any other error from `Run` also stops it with status 1
(closes #73)
- 2026-10-03: `/api/v1/stats` serves the prefix distribution from memory,
seeded at startup and adjusted on every live-route write, so a request no
longer reads every live route (closes #30)