Versions in this module Expand all Collapse all v0 v0.0.1 Jan 1, 2026 Changes in this version + type Process struct + Cmd *exec.Cmd + Log telegraf.Logger + ReadStderrFn func(io.Reader) + ReadStdoutFn func(io.Reader) + RestartDelay time.Duration + Stderr io.ReadCloser + Stdin io.WriteCloser + Stdout io.ReadCloser + StopOnError bool + func New(command, envs []string) (*Process, error) + func (p *Process) Pid() int + func (p *Process) Start() error + func (p *Process) State() (state *os.ProcessState, running bool) + func (p *Process) Stop()