service

package
v0.18.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InitSystem

type InitSystem interface {
	CreateService(context.Context) error
	TeardownService(context.Context) error
	StopUnit(context.Context, string) error
	StartUnit(context.Context, string) error
	StopDisplayManager(context.Context) error
	StartDisplayManager(context.Context) error
	IsDisplayManagerStopped(context.Context) (bool, error)
}

func GetInitSystem

func GetInitSystem() (InitSystem, error)

type Systemd

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

func (*Systemd) CreateService

func (s *Systemd) CreateService(ctx context.Context) error

func (*Systemd) IsDisplayManagerStopped

func (s *Systemd) IsDisplayManagerStopped(ctx context.Context) (bool, error)

func (*Systemd) StartDisplayManager

func (s *Systemd) StartDisplayManager(ctx context.Context) error

func (*Systemd) StartUnit

func (s *Systemd) StartUnit(ctx context.Context, name string) error

func (*Systemd) StopDisplayManager

func (s *Systemd) StopDisplayManager(ctx context.Context) error

func (*Systemd) StopUnit

func (s *Systemd) StopUnit(ctx context.Context, name string) error

func (*Systemd) TeardownService

func (s *Systemd) TeardownService(ctx context.Context) error

Jump to

Keyboard shortcuts

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