struct

Fluxion::SystemdUnit

Inherits Struct < Value < Object

One unit inside a systemd-unit step.

Constants

ALREADY_ENABLED = ["enabled", "enabled-runtime"] of ::String
NOT_ENABLEABLE = ["static", "indirect", "generated", "transient", "alias"] of ::String

Unit states that have no [Install] section and are therefore reachable only as a dependency. Passing one to enable is an error, so Fluxion treats an already-correct unit as satisfied instead.

Constructors

new(unit : String, enabled : Bool = true, state : SystemdState = SystemdState::Unchanged, masked : Bool = false)
Source

Instance methods

enabled?
Source
masked?

Masking is a refusal to start, so it cannot coexist with enabling.

Source
qualified_name

A bare name is a .service.

Source
state
Source
unit
Source