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§
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) andExecMainStatus→ how the main process last ended.- ms 🔒
- now 🔒
- observed_
from - parse_
show - Parse
systemctl showkey=value output. - posture_
failed 🔒 - A failure class is raised:
failed-*exists indir. - systemctl
- The
systemctlprefix for a unit’s manager. - unit_
name