Skip to main content

restart

Function restart 

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

Restart a systemd unit.

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

ยงErrors

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