pub fn stop_daemon(pid_file: &Path) -> Result<String, String>Expand description
Stop a running pwr-server daemon.
Reads the PID from pid_file, sends SIGTERM, waits up to 5 seconds for
graceful shutdown, then escalates to SIGKILL if the process is still alive.
Removes the PID file on successful termination.
Returns a human-readable summary of what happened.