systemd

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Active

func Active(unit string) (bool, error)

Active checks if a systemd unit is active

func Disable

func Disable(unit string) error

Disable disables a systemd unit

func DisableAndStopUnit

func DisableAndStopUnit(unit string) error

DisableAndStopUnit disables and stops a systemd unit

func DisableIfEnabled

func DisableIfEnabled(unit string) error

DisableIfEnabled disables a systemd unit if it is enabled

func Enable

func Enable(unit string) error

Enable enables a systemd unit

func EnableAndStartUnit

func EnableAndStartUnit(unit string) error

EnableAndStartUnit enables and starts a systemd unit

func Enabled

func Enabled(unit string) (bool, error)

Enabled checks if a systemd unit is enabled

func Failed

func Failed(unit string) (bool, error)

Failed checks if a systemd unit is in a failed state

func ResetFailed

func ResetFailed(unit string) error

ResetFailed resets the state of a failed systemd unit

func Start

func Start(unit string) error

Start starts a systemd unit

func Stop

func Stop(unit string) error

Stop stops a systemd unit

func StopIfActive

func StopIfActive(unit string) error

StopIfActive stops a systemd unit if it is active

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL