runsv

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	REPOSITORY = "/etc/sv"
	SERVICEDIR = "/etc/service"
	SVDATADIR  = "/var/lib/supervise"

	ErrTimedOut        = errors.New("Timeout error")
	ErrStateChanged    = errors.New("State was changed")
	ErrRunsvNotRunning = errors.New("Runsv is not running")
)

Functions

func CheckState

func CheckState(name string, t uint) error

func Enable

func Enable(name string, start bool) error

func EnableWaitPid

func EnableWaitPid(name string, start bool, t uint) error

func GetPid

func GetPid(name string) (int, error)

func GetState

func GetState(name string) (string, error)

func GetWantState

func GetWantState(name string) (string, error)

func IsEnabled

func IsEnabled(name string) bool

func SendSignal

func SendSignal(name, s string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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