Expand description
Varlink proxy for the io.systemd.Unit interface on PID 1’s socket.
Adapted from the interface definition in systemd’s
src/core/varlink-unit.c. The List method exists from v258, but the
per-type context sections monitord reads land later: src/core/varlink-service.c
and src/core/varlink-timer.c first appear in v261, so that is the real
minimum for anything here.
Only the fields monitord maps onto its own stats types are declared; serde drops the rest, which is most of a ~7KB per-unit reply.
Note that systemd omits fields sitting at their default rather than sending
a zero, so almost everything here is optional and the caller supplies the
default (see varlink_units, where those defaults have to match what the
D-Bus properties return for the same unit).
Structs§
- CGroup
Runtime - cgroup accounting for a unit. Fields appear only when the matching accounting option is enabled for the unit.
- Exec
Context - Execution configuration shared by every unit type that runs processes.
- List
Output - Output parameters for the List method.
- Process
Id - A process reference, carrying the pid plus fields that disambiguate reuse.
- Service
Context - Service-specific configuration.
- Service
Runtime - Service-specific runtime state.
- Timer
Context - Timer-specific configuration.
- Timer
Runtime - Timer-specific runtime state.
- Timestamp
- A systemd timestamp, carrying both clocks.
- Unit
Context - Configuration of a unit.
- Unit
Runtime - Runtime state of a unit.
Enums§
- Unit
Error - Errors that can occur in the io.systemd.Unit interface.