SystemdUnitFileState
: string
in package
Enablement state of systemd unit file
Tags
Table of Contents
Cases
- Alias = 'alias'
- Bad = 'bad'
- Disabled = 'disabled'
- Enabled = 'enabled'
- EnabledRuntime = 'enabled-runtime'
- Generated = 'generated'
- Indirect = 'indirect'
- Linked = 'linked'
- LinkedRuntime = 'linked-runtime'
- Masked = 'masked'
- MaskedRuntime = 'masked-runtime'
- Static = 'static'
- Transient = 'transient'
Methods
- isEnabled() : bool
- Checks if the unit is enabled
- isTogglable() : bool
- Checks if the unit can be enabled or disabled
Cases
Enabled
EnabledRuntime
Linked
LinkedRuntime
Alias
Masked
MaskedRuntime
Static
Indirect
Disabled
Generated
Transient
Bad
Methods
isEnabled()
Checks if the unit is enabled
public
isEnabled() : bool
Return values
bool —Is the unit enabled?
isTogglable()
Checks if the unit can be enabled or disabled
public
isTogglable() : bool
Return values
bool —Can the unit be enabled or disabled?