Skip to main content

Module systemd

Module systemd 

Source
Expand description

UnitBackend over systemd (§8 systemd mapping).

active → Active; failed → Failed(exit status); inactive/dead → Bound; activating/deactivating/reloading → Transitioning; not found → Absent; a systemctl error → Err (state reports Unknown). User-scope units go through the user’s manager (--machine=<uid>@.host --user).

Structs§

Systemd

Constants§

FAILED_DIR 🔒
Where the posture marks a raised failure class (failed-<class>).
JOB_TIMEOUT
QUERY_TIMEOUT

Functions§

declared
A unit file that belongs to the generation: in the store (directly or through /etc’s links into it), written by a systemd generator, transient, or none at all (scopes, slices, devices, mounts systemd makes up).
ending_from
Result, ExecMainCode (1 exited, 2 killed, 3 dumped core) and ExecMainStatus → how the main process last ended.
ms 🔒
now 🔒
observed_from
parse_show
Parse systemctl show key=value output.
posture_failed 🔒
A failure class is raised: failed-* exists in dir.
systemctl
The systemctl prefix for a unit’s manager.
unit_name