supervisor

package
v1.5.9-feat-publisher-... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

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) Bytes

func (c *Program) Bytes() ([]byte, error)

func (Program) GetSection

func (c Program) GetSection() *section_config.Section

func (*Program) Name

func (c *Program) Name() string

func (*Program) SetDefault

func (c *Program) SetDefault()

func (*Program) SetSection

func (c *Program) SetSection(name, val string)

func (*Program) Write

func (c *Program) Write(filename string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL