Structs§
- Manager
Proxy - Proxy object for
org.freedesktop.systemd1.Manager. Partially taken from https://github.com/lucab/zbus_systemd/blob/main/src/systemd1/generated.rs - Unit
File - Represents a unit file from ListUnitFiles (includes disabled units not returned by ListUnits)
- UnitId
- Just enough info to fully identify a unit
- Unit
Proxy - Proxy object for
org.freedesktop.systemd1.Unit. Taken from https://github.com/lucab/zbus_systemd/blob/main/src/systemd1/generated.rs - Unit
With Status
Enums§
- LogDiagnostic
- Diagnostic result explaining why logs might be missing
- Scope
- Unit
Scope
Functions§
- check_
unit_ has_ run - Check if a unit has ever been activated using systemctl show
- diagnose_
missing_ logs - Diagnose why logs are missing for a unit
- disable_
service - enable_
service - get_
active_ state - Returns the load state of a systemd unit
- get_
all_ services - get_
main_ pid - Returns the PID of a systemd service
- get_
unit_ file_ location - get_
unit_ file_ state - Returns the unit file state of a systemd unit. If the state is
enabled, the unit loads on every boot - get_
unit_ files - Get unit files for all services, INCLUDING DISABLED ONES (ListUnits doesn’t include those) This is slower than get_all_services. Takes about 100ms (user) and 300ms (global) on 13th gen Intel i7
- get_
unit_ path - Unit file path for a service
- kill_
service - parse_
journalctl_ error - Parse journalctl stderr to determine the specific error type
- reload
- restart_
service - sleep_
test - start_
service - stop_
service