Documentation ¶
Index ¶
- func Background(args []string, env ...string) (*exec.Cmd, error)
- func Group(group int, args []string, procArgs ProcessArgs, cb ProcessCallback, ...)
- func Run(groupId int, args []string, procArgs ProcessArgs, cb ProcessCallback, ...) int
- func Shell(args []string, env ...string) (*exec.Cmd, error)
- func StripArgs(args []string, arg string) []string
- type Config
- type ProcessArgs
- type ProcessCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Group ¶ added in v0.8.3
func Group(group int, args []string, procArgs ProcessArgs, cb ProcessCallback, config Config, env ...string)
Group 守护进程启动一个N[1,2000]子进程, 并循环监视
func Run ¶
func Run(groupId int, args []string, procArgs ProcessArgs, cb ProcessCallback, config Config, env ...string) int
Run 守护进程启动一个子进程, 并循环监视
Types ¶
type ProcessArgs ¶ added in v0.8.3
Click to show internal directories.
Click to hide internal directories.