D-Bus object for a loaded systemd unit.
Summary
Functions
Reads one property from the unit object.
Reads common service-specific properties.
Reads common socket-specific properties.
Reads common unit state properties.
Reads common timer-specific properties.
Types
Functions
@spec property(pid(), t(), String.t()) :: {:ok, term()} | {:error, Systemd.Error.t()}
Reads one property from the unit object.
@spec service_state(pid(), t()) :: {:ok, Systemd.ServiceState.t()} | {:error, Systemd.Error.t()}
Reads common service-specific properties.
@spec socket_state(pid(), t()) :: {:ok, Systemd.SocketState.t()} | {:error, Systemd.Error.t()}
Reads common socket-specific properties.
@spec state(pid(), t()) :: {:ok, Systemd.UnitState.t()} | {:error, Systemd.Error.t()}
Reads common unit state properties.
@spec timer_state(pid(), t()) :: {:ok, Systemd.TimerState.t()} | {:error, Systemd.Error.t()}
Reads common timer-specific properties.