Skip to main content

Module systemd

Module systemd 

Source
Expand description

systemctl helpers that respect HostContext dry-run vs apply.

Functionsยง

disable
Disable a systemd unit.
enable
Enable a systemd unit.
restart
Restart a systemd unit.
start
Start a systemd unit.
stop
Stop a systemd unit.
systemctl ๐Ÿ”’
try_disable
Disable unit; on failure append a warning to HostContext::logs.
try_enable
Enable unit; on failure append a warning to HostContext::logs.
try_restart
Restart unit; on failure append a warning to HostContext::logs.
try_start
Start unit; on failure append a warning to HostContext::logs.
try_stop
Stop unit; on failure append a warning to HostContext::logs.
try_unmask
Unmask unit; on failure append a warning to HostContext::logs.
unit_present
True when systemctl list-unit-files reports {unit}.service.
unmask
Unmask a systemd unit.