Systemd.Job (systemd v0.1.0-pre.0)

Copy Markdown View Source

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

state()

@type state() :: :waiting | :running | :done | :unknown

t()

@type t() :: %Systemd.Job{object_path: String.t()}

Functions

await(conn, job, opts \\ [])

@spec await(pid(), t(), keyword()) :: :ok | {:error, Systemd.Error.t()}

Polls until a job leaves waiting/running or disappears from the bus.

property(conn, job, property)

@spec property(pid(), t(), String.t()) :: {:ok, term()} | {:error, Systemd.Error.t()}

Reads a job property.