Skip to main content

stop_daemon

Function stop_daemon 

Source
pub fn stop_daemon() -> Result<DaemonStop>
Expand description

Stop the daemon of the active data dir (LEAN_CTX_DATA_DIR, else the default under HOME), resolved only through that dir’s PID file, identity file and socket — never through a default path, a process name or a service name. The autostart service is stopped too, but only when it runs exactly this daemon’s PID (5 Nov 2026: systemctl --user stop by unit name stopped the user’s real daemon from a scratch data dir).