Systemd.UnitFile.Builder (systemd v0.1.0-pre.1)

Copy Markdown View Source

Typed builders for common systemd unit file sections.

Summary

Functions

Builds a unit file with one section.

Builds a unit file from common Unit, Service, and Install sections.

Types

directives()

@type directives() :: keyword() | %{optional(atom() | String.t()) => term()}

Functions

section(name, directives)

@spec section(String.t(), directives()) :: Systemd.UnitFile.t()

Builds a unit file with one section.

service(opts)

@spec service(keyword()) :: Systemd.UnitFile.t()

Builds a unit file from common Unit, Service, and Install sections.