runit

package
v0.0.0-...-bc975d8 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 6 Imported by: 73

Documentation

Index

Constants

View Source
const (
	StateDown   = 0
	StateUp     = 1
	StateFinish = 2
)

Variables

View Source
var (
	ENoRunsv      = errors.New("runsv not running")
	StateToString = map[int]string{
		StateDown:   "down",
		StateUp:     "up",
		StateFinish: "finish",
	}
)

Functions

func GetService

func GetService(name string, dir string) *service

func GetServices

func GetServices(dir string) ([]*service, error)

Types

type SvStatus

type SvStatus struct {
	Pid        int
	Duration   int
	Timestamp  time.Time
	State      int
	NormallyUp bool
	Want       int
}

Jump to

Keyboard shortcuts

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