pub async fn stop(grace_secs: u64) -> Result<StopOutcome, String>Expand description
Gracefully stop the daemon. Sends SIGTERM, waits up to
grace_secs for the process to exit, then escalates to SIGKILL.
Removes a stale PID file regardless of which path exits. Returns
what actually happened so the CLI can phrase the UX correctly.