systemd

package
v0.0.0-...-8ac10f7 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrSystemCtlFailed Systemctl command failed
	ErrSystemCtlFailed = errors.New("Systemctl command failed")
)

Functions

This section is empty.

Types

type SystemD

type SystemD struct {
	// contains filtered or unexported fields
}

SystemD implementation for SystemD

func NewSystemD

func NewSystemD() *SystemD

NewSystemD generates a SystemD object

func (*SystemD) AddDependentService

func (sd *SystemD) AddDependentService(serviceName string, depName string) error

AddDependentService to the service

func (*SystemD) Disable

func (sd *SystemD) Disable(serviceName string) error

Disable the service

func (*SystemD) Enable

func (sd *SystemD) Enable(serviceName string) error

Enable the service

func (*SystemD) RemoveDependentService

func (sd *SystemD) RemoveDependentService(serviceName string, depName string) error

RemoveDependentService to the service

func (*SystemD) Restart

func (sd *SystemD) Restart(serviceName string) error

Restart the service

func (*SystemD) RestartEx

func (sd *SystemD) RestartEx(serviceName string, successStopRegex string, successStartRegex string) error

RestartEx the service

func (*SystemD) Start

func (sd *SystemD) Start(serviceName string) error

Start the service

func (*SystemD) StartEx

func (sd *SystemD) StartEx(serviceName string, successRegex string) error

StartEx the service

func (*SystemD) Status

func (sd *SystemD) Status(serviceName string) (bool, error)

Status of the service

func (*SystemD) StatusEx

func (sd *SystemD) StatusEx(serviceName string, successRegex string) (bool, error)

StatusEx of the service

func (*SystemD) Stop

func (sd *SystemD) Stop(serviceName string) error

Stop the service

func (*SystemD) StopEx

func (sd *SystemD) StopEx(serviceName string, successRegex string) error

StopEx the service

Jump to

Keyboard shortcuts

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