Documentation
¶
Index ¶
Constants ¶
const ReadyFDEnv = "OPENSVC_EXEC_READY_FD"
ReadyFDEnv names the variable of the descriptor a caller of Exec waits on for the command to take over: the descriptor is closed by the execve of the command, and the error is written to it when the command can not be executed. The command inherits neither the descriptor nor the variable.
It is the protocol a Go program starting a command uses with its child, one level deeper: the caller learns the command runs, in its cgroup, with its limits and its identity, without guessing a delay.
Variables ¶
var ErrNoCommand = errors.New("a command to run is required, after --")
ErrNoCommand is the error of an exec given no command to run.
Functions ¶
Types ¶
type T ¶
type T struct {
PGID *string
PGCpus *string
PGMems *string
PGCPUQuota *string
PGCPUBurst *string
PGMemOOMControl *string
PGMemLimit *string
PGMemHigh *string
PGVMemLimit *string
PGMemSwappiness *string
PGBlockIOWeight *string
PGPidsMax *string
LimitAS *string
LimitCPU *string
LimitCore *string
LimitData *string
LimitFSize *string
LimitMemLock *string
LimitNoFile *string
LimitNProc *string
LimitRSS *string
LimitStack *string
LimitVMem *string
User *string
Group *string
// Umask is the umask of the command, in octal, as 022. Not set,
// the command inherits the one of om exec.
Umask *string
}