systemd

package
v2.36.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UserUnitPath

func UserUnitPath(unitName string) string

func UserUnitsDir

func UserUnitsDir() string

Types

type Commander

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

func NewHostSystemdCommander

func NewHostSystemdCommander() *Commander

func NewInstanceSystemdCommander

func NewInstanceSystemdCommander(sshRunner *ssh.Runner) *Commander

func (Commander) DaemonReload

func (c Commander) DaemonReload() error

func (Commander) Disable

func (c Commander) Disable(name string) error

func (Commander) Enable

func (c Commander) Enable(name string) error

func (Commander) Reload

func (c Commander) Reload(name string) error

func (Commander) Restart

func (c Commander) Restart(name string) error

func (Commander) Start

func (c Commander) Start(name string) error

func (Commander) Status

func (c Commander) Status(name string) (states.State, error)

func (Commander) Stop

func (c Commander) Stop(name string) error

func (*Commander) User

func (c *Commander) User() *Commander

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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