Skip to main content

stop

Function stop 

Source
pub fn stop(ctx: &mut HostContext, unit: &str) -> Result<()>
Expand description

Stop a systemd unit.

In dry-run mode, records systemctl stop and returns Ok.

ยงErrors

Returns HortoError::CommandFailed when systemctl cannot be spawned or exits non-zero.