Monitor restarts itself when the service updated its binary on disk

This commit is contained in:
mram
2026-09-22 08:34:47 +02:00
parent c95d401a36
commit 1264afe40e
2 changed files with 43 additions and 1 deletions
+3
View File
@@ -1034,6 +1034,9 @@ type statusSnapshot struct {
UptimeS int64 `json:"uptime_s"`
Downstreams []statusDownstream `json:"downstreams"`
Lock statusLock `json:"lock"`
// MonitorNote is set client-side (never over the wire) when the
// monitor's own binary differs from the service's version.
MonitorNote string `json:"-"`
}
// statusProvider assembles the one-line JSON snapshot for CmdStatus.