pub async fn stop(config: &DaemonConfig) -> Result<DaemonStopResult>Expand description
Stop the running daemon.
Reads the PID from the PID file, validates the process is actually a daemon instance, sends SIGTERM (Unix) or Ctrl+C (Windows), and waits for the process to exit.