Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Program ¶
type Program struct { section_config.Section // Command which will be run when supervisord started Command cmd.Command `name:"command"` // AutoStart if true, program will start automatically when supervisor start AutoStart bool `name:"autostart"` // AutoRestart Specifies if supervisord should automatically restart program AutoRestart bool `name:"autorestart"` // StartSecs The total seconds which the program needs to stay running after // a startup to consider the start successful (moving the process from the // `STARTING` state to the `RUNNING` state) StartSecs types.Second `name:"startsecs"` // StartRetries The number of serial failure attempts before program started StartRetries int `name:"startretries"` // User Instruct supervisord to switch users to this UNIX user account // before doing any meaningful processing User string `name:"user"` // Priority the relative priority of the program in the start and shutdown ordering Priority int `name:"priority"` // ExitCodes The list of expected exit codes for this program used with `autorestart`. ExitCodes types.CommaSplitInts `name:"exitcodes"` // // StopSignal The signal used to kill the program. It is normally one of: // `TERM`, `HUP`, `INT`, `QUIT`, `KILL`, `USR1`, or `USR2` StopSignal types.Signal `name:"stopsignal"` // Envs program's env vars Envs types.CommaSplitStrings `name:"environment"` // StdoutLogFile Put process stdout output in this file StdoutLogFile string `name:"stdout_logfile"` // StdoutLogFileMaxBytes The maximum number of bytes that may be consumed by // `StdoutLogFile` StdoutLogFileMaxBytes types.MB `name:"stdout_logfile_maxbytes"` // StdLogFileBackups The number of `stdout_logfile` backups to keep around // resulting from process stdout log file rotation StdoutLogFileBackups int `name:"stdout_logfile_backups"` }
func (Program) GetSection ¶
func (c Program) GetSection() *section_config.Section
func (*Program) SetDefault ¶
func (c *Program) SetDefault()
func (*Program) SetSection ¶
Click to show internal directories.
Click to hide internal directories.