A systemd job returned by manager operations such as StartUnit.
Summary
Functions
Polls until a job leaves waiting/running or disappears from the bus.
Reads a job property.
Types
@type state() :: :waiting | :running | :done | :unknown
@type t() :: %Systemd.Job{object_path: String.t()}
Functions
@spec await(pid(), t(), keyword()) :: :ok | {:error, Systemd.Error.t()}
Polls until a job leaves waiting/running or disappears from the bus.
@spec property(pid(), t(), String.t()) :: {:ok, term()} | {:error, Systemd.Error.t()}
Reads a job property.