Skip to main content

stop_process

Function stop_process 

Source
pub fn stop_process() -> Result<(), ProcessError>
Expand description

Sends SIGTERM to the zot process, waits up to STOP_TIMEOUT for it to exit, escalates to SIGKILL if needed, then removes the PID file. No-op when zot isn’t running. Idempotent.