Skip to main content

start

Function start 

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

Start a systemd unit.

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

ยงErrors

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