Expand description
§units module
All main systemd unit statistics. Counts of types of units, unit states and queued jobs. We also house service specific statistics and system unit states.
Constants§
Functions§
- apply_
oneshot_ dbus_ override - Apply the oneshot health override to varlink-collected unit stats.
- apply_
oneshot_ types - Recompute
unhealthyfor tracked units given resolved service types. - apply_
unit_ details - Collect per-unit detail over varlink:
ServiceStatsfor the[services]list, the tracked timers, and the service types the oneshot health override needs. - fetch_
oneshot_ types - Look up
Service.Typefor each candidate over D-Bus. - get_
unit_ stats - parse_
metrics - parse_
one_ metric - Parse state of a unit into our unit_states hash
- select_
oneshot_ candidates - Select unit names whose health needs a service-type check.
- update_
unit_ stats - Async wrapper that can update unit stats when passed a locked struct.