Documentation ¶
Index ¶
- func Active(unit string) (bool, error)
- func Disable(unit string) error
- func DisableAndStopUnit(unit string) error
- func DisableIfEnabled(unit string) error
- func Enable(unit string) error
- func EnableAndStartUnit(unit string) error
- func Enabled(unit string) (bool, error)
- func Failed(unit string) (bool, error)
- func ResetFailed(unit string) error
- func Start(unit string) error
- func Stop(unit string) error
- func StopIfActive(unit string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableAndStopUnit ¶
DisableAndStopUnit disables and stops a systemd unit
func DisableIfEnabled ¶
DisableIfEnabled disables a systemd unit if it is enabled
func EnableAndStartUnit ¶
EnableAndStartUnit enables and starts a systemd unit
func ResetFailed ¶
ResetFailed resets the state of a failed systemd unit
func StopIfActive ¶
StopIfActive stops a systemd unit if it is active
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.