Skip to main content

detect_restart

Function detect_restart 

pub fn detect_restart() -> RestartInfo
Expand description

Classify the runtime environment to pick exit-vs-manual and hint text.

This only chooses what to show; the gateway does not act on it in Phase 1. The classification is static for the process lifetime (env vars + cgroup), so it is computed once and cached — /api/status calls this on every poll.