Skip to main content

stop

Function stop 

Source
pub fn stop() -> Result<()>
Expand description

Stops the daemon; “already stopped” counts as success, so cleanup scripts can call it unconditionally.

use kasl::libs::daemon;

daemon::stop()?;
println!("Monitoring stopped");