Skip to main content

stop_worker_daemon_script

Function stop_worker_daemon_script 

Source
pub fn stop_worker_daemon_script(worker_root: &str) -> String
Expand description

Stop the detached worker daemon rooted at worker_root.

The daemon leads its own process group, so the signal goes to the group first to take the agent down with it. Shells disagree about how to write a negative PID (dash rejects --), hence the two forms before the single-process fallback for daemons predating the group leadership.