config.go 388 字节
Newer Older
O
ob-robot 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
package process

import (
	"time"
)

// ProcessConfig a process config. defines how to run a process
type ProcessConfig struct {
	Program string
	Args    []string

	Cwd        string
	User       string
	Group      string
	Stdout     string
	Stderr     string
	InheritEnv bool
	Envs       map[string]string
	Rlimit     map[string]int64

	KillWait  time.Duration
	FinalWait time.Duration
}