Documentation ¶
Index ¶
Constants ¶
View Source
const ( PROCESS_STARTING = iota PROCESS_RUNNING PROCESS_RETRY PROCESS_EXIT_CALLED PROCESS_STOP_WAIT PROCESS_STOP )
Variables ¶
View Source
var ( ProcessList = ProcessSlice{} ProcessMutex sync.RWMutex ProcessDebug bool = true )
View Source
var ProcessStateStr = map[int]string{ PROCESS_STARTING: "Starting", PROCESS_RUNNING: "Running", PROCESS_RETRY: "Retry", PROCESS_EXIT_CALLED: "Exit Called", PROCESS_STOP_WAIT: "Stop Wait", PROCESS_STOP: "Stop", }
Functions ¶
func ProcessCount ¶
func ProcessCount() int
func ProcessListShow ¶
func ProcessListShow() string
func ProcessRegister ¶
func ProcessRegister(proc *Process)
func ProcessStart ¶
func ProcessStart(index int)
func ProcessStop ¶
func ProcessStop(index int)
func ProcessUnregister ¶
func ProcessUnregister(proc *Process)
Types ¶
type Process ¶
type Process struct { Name string Vrf string Args []string Env map[string]string File string ErrLookup string ErrStart string ErrWait string ExitFunc func() State int Cmd *exec.Cmd StartTimer int RetryTimer int Index int KillPidFile string }
func NewProcess ¶
func ProcessLookup ¶
type ProcessSlice ¶
type ProcessSlice []*Process
Click to show internal directories.
Click to hide internal directories.