Versions in this module Expand all Collapse all v1 v1.1.0 Dec 10, 2025 Changes in this version + const SUPERVISOR_VERSION + const VERSION + var HttpMux = &HttpServeMux + func Deamonize(proc func()) + func GenTemplate(writer io.Writer) error + func JsonOutput(data interface{}) + func LoadEnvFile() + func NewHttpBasicAuth(user string, password string, handler http.Handler) *httpBasicAuth + func ReapZombie() + func Run() + func RunServer() + type BaseChecker struct + func NewBaseChecker(includes []string, timeout int) *BaseChecker + func (bc *BaseChecker) Check() bool + func (bc *BaseChecker) Write(b []byte) (int, error) + type ContentChecker interface + Check func() bool + type CtlCommand struct + Encode string + Follow bool + Password string + ServerUrl string + User string + Verbose bool + func (x *CtlCommand) Execute(args []string) error + type DecodeCommand struct + Key string + Out string + func (v DecodeCommand) Execute(args []string) error + type EncodeCommand struct + Key string + Out string + func (v EncodeCommand) Execute(args []string) error + type GetEnvCommand struct + func (c *GetEnvCommand) Execute(args []string) error + type HttpChecker struct + func NewHttpChecker(url string, timeout int) *HttpChecker + func (hc *HttpChecker) Check() bool + type HttpServeMux struct + func (s *HttpServeMux) ServeHTTP(w http.ResponseWriter, r *http.Request) + type InitTemplateCommand struct + OutFile string + func (x *InitTemplateCommand) Execute(args []string) error + type LogReadInfo struct + Length int + Offset int + type Options struct + Configuration string + Daemon bool + EnvFile string + type PidCommand struct + func (c *PidCommand) Execute(args []string) error + type ProcessLogReadInfo struct + Length int + Name string + Offset int + type ProcessStdin struct + Chars string + Name string + type ProcessTailLog struct + LogData string + Offset int64 + Overflow bool + type RPCServer struct + func NewRPCServer(s *Supervisor) *RPCServer + func (p *RPCServer) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (p *RPCServer) StartInetHttpServer(user string, password string, listenAddr string) + func (p *RPCServer) StartUnixHttpServer(user string, password string, listenAddr string) + func (p *RPCServer) Stop() + type ReloadCommand struct + func (c *ReloadCommand) Execute(args []string) error + type RemoteCommEvent struct + Data string + Type string + type RestartCommand struct + func (rc *RestartCommand) Execute(args []string) error + type ScriptChecker struct + func NewScriptChecker(args []string) *ScriptChecker + func (sc *ScriptChecker) Check() bool + type SetEnvCommand struct + func (c *SetEnvCommand) Execute(args []string) error + type ShutdownCommand struct + func (c *ShutdownCommand) Execute(args []string) error + type SignalCommand struct + func (c *SignalCommand) Execute(args []string) error + type StartCommand struct + func (c *StartCommand) Execute(args []string) error + type StartProcessArgs struct + Name string + Wait bool + type StateInfo struct + Statecode int + Statename string + type StatusCommand struct + func (c *StatusCommand) Execute(args []string) error + type StopCommand struct + func (c *StopCommand) Execute(args []string) error + type Supervisor struct + func NewSupervisor(configFile string) *Supervisor + func (s *Supervisor) AddProcessGroup(args *struct{ Name string }, reply *rpcclient.StatusReply) error + func (s *Supervisor) ClearLog(args *struct{}, reply *rpcclient.StatusReply) error + func (s *Supervisor) GetAllProcessInfo(args *struct{}, reply *rpcclient.AllProcessInfoReply) error + func (s *Supervisor) GetEnv(args *rpcclient.GetEnvArg, reply *rpcclient.GetEnvRet) error + func (s *Supervisor) GetPID(args *struct{}, reply *struct{ Pid int }) error + func (s *Supervisor) GetProcessInfo(args *struct{ Name string }, reply *rpcclient.ProcessInfoReply) error + func (s *Supervisor) GetState(args *struct{}, reply *struct{ StateInfo StateInfo }) error + func (s *Supervisor) GetSupervisorVersion(args *rpcclient.GetVersionArg, reply *rpcclient.GetVersionRet) error + func (s *Supervisor) GetVersion(args *rpcclient.GetVersionArg, reply *rpcclient.GetVersionRet) error + func (s *Supervisor) ReadLog(args *LogReadInfo, reply *struct{ Log string }) error + func (s *Supervisor) ReloadConfig(args *rpcclient.ReloadConfigArg, reply *rpcclient.ReloadConfigRet) error + func (s *Supervisor) RemoveProcessGroup(args *struct{ Name string }, reply *rpcclient.StatusReply) error + func (s *Supervisor) Restart(args *struct{}, reply *rpcclient.StatusReply) error + func (s *Supervisor) RestartAllProcesses(args ..., reply *rpcclient.AllProcessInfoReply) error + func (s *Supervisor) RestartProcess(args *StartProcessArgs, reply *rpcclient.StatusReply) error + func (s *Supervisor) SendProcessStdin(args *ProcessStdin, reply *rpcclient.StatusReply) error + func (s *Supervisor) SendRemoteCommEvent(args *RemoteCommEvent, reply *rpcclient.StatusReply) error + func (s *Supervisor) SetEnv(args *rpcclient.SetEnvArg, reply *rpcclient.SetEnvRet) error + func (s *Supervisor) Shutdown(args *struct{}, reply *rpcclient.StatusReply) error + func (s *Supervisor) SignalAllProcesses(args *rpcclient.SignalAllProcessesArg, reply *rpcclient.SignalAllProcessesRet) error + func (s *Supervisor) SignalProcess(args *types.ProcessSignal, reply *rpcclient.StatusReply) error + func (s *Supervisor) SignalProcessGroup(args *types.ProcessSignal, reply *rpcclient.AllProcessInfoReply) error + func (s *Supervisor) StartAllProcesses(args ..., reply *rpcclient.AllProcessInfoReply) error + func (s *Supervisor) StartProcess(args *StartProcessArgs, reply *rpcclient.StatusReply) error + func (s *Supervisor) StartProcessGroup(args *StartProcessArgs, reply *rpcclient.AllProcessInfoReply) error + func (s *Supervisor) StopAllProcesses(args ..., reply *rpcclient.AllProcessInfoReply) error + func (s *Supervisor) StopProcess(args *StartProcessArgs, reply *rpcclient.StatusReply) error + func (s *Supervisor) StopProcessGroup(args *StartProcessArgs, reply *rpcclient.AllProcessInfoReply) error + type SupervisorRestful struct + func NewSupervisorRestful(supervisor *Supervisor) *SupervisorRestful + func (sr *SupervisorRestful) CreateProgramHandler() http.Handler + func (sr *SupervisorRestful) ListProgram(w http.ResponseWriter, req *http.Request) + func (sr *SupervisorRestful) ReadStdoutLog(w http.ResponseWriter, req *http.Request) + func (sr *SupervisorRestful) Reload(w http.ResponseWriter, req *http.Request) + func (sr *SupervisorRestful) Shutdown(w http.ResponseWriter, req *http.Request) + func (sr *SupervisorRestful) StartProgram(w http.ResponseWriter, req *http.Request) + func (sr *SupervisorRestful) StartPrograms(w http.ResponseWriter, req *http.Request) + func (sr *SupervisorRestful) StopProgram(w http.ResponseWriter, req *http.Request) + func (sr *SupervisorRestful) StopPrograms(w http.ResponseWriter, req *http.Request) + type TailCommand struct + Follow bool + func (c *TailCommand) Execute(args []string) error + type TcpChecker struct + func NewTcpChecker(host string, port int, includes []string, timeout int) *TcpChecker + func (tc *TcpChecker) Check() bool + type VersionCommand struct + func (v VersionCommand) Execute(args []string) error