Skip to main content

disable

Function disable 

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

Disable a systemd unit.

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

ยงErrors

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