Skip to main content

stop_daemon

Function stop_daemon 

Source
pub fn stop_daemon(pid_file: Option<String>) -> Result<()>
Expand description

Stop a running daemon by sending SIGTERM

§Arguments

  • pid_file - Optional PID file path (defaults to runtime-appropriate location)

§Returns

Ok(()) if the daemon was stopped or wasn’t running. Err if stopping failed.