Expand description
zot process lifecycle: spawn, liveness check, and graceful stop.
Ported from internal/registrycache/process.go.
Enums§
- Process
Error - Errors from spawning or controlling the zot process.
Functions§
- is_
running - Returns true when the PID file exists and the named process is alive. Missing PID file or stale PID both yield false.
- spawn_
process - Spawns zot in the background, writes the PID file, and returns.
The caller does not wait for zot; zot survives as a detached child
(own session via
setsid). stdout and stderr are redirected topaths::log_path. - stop_
process - Sends
SIGTERMto the zot process, waits up toSTOP_TIMEOUTfor it to exit, escalates toSIGKILLif needed, then removes the PID file. No-op when zot isn’t running. Idempotent.