Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct { PropertiesFilePath string Config *CheckerConfig ConcurrentWorkers int ForceRestart bool AllErrorsArray []*error // contains filtered or unexported fields }
func (*Checker) CheckAndRestart ¶
func (*Checker) ReportErrors ¶
type CheckerConfig ¶
type CheckerConfig struct { Services []*Service `yaml:"services_list"` Mailer *mailer.Mailer `yaml:"general"` // contains filtered or unexported fields }
func (*CheckerConfig) String ¶
func (c *CheckerConfig) String() string
type ErrNoPidFile ¶
type ErrNoPidFile struct {
// contains filtered or unexported fields
}
func (*ErrNoPidFile) Error ¶
func (e *ErrNoPidFile) Error() string
func (*ErrNoPidFile) String ¶
func (e *ErrNoPidFile) String() string
type ErrNoProcName ¶
type ErrNoProcName struct{}
func (*ErrNoProcName) Error ¶
func (e *ErrNoProcName) Error() string
func (*ErrNoProcName) String ¶
func (e *ErrNoProcName) String() string
type ErrNoStartCmd ¶
type ErrNoStartCmd struct {
// contains filtered or unexported fields
}
func (*ErrNoStartCmd) Error ¶
func (e *ErrNoStartCmd) Error() string
func (*ErrNoStartCmd) String ¶
func (e *ErrNoStartCmd) String() string
type ErrSvcRestartedForce ¶
type ErrSvcRestartedForce struct {
// contains filtered or unexported fields
}
func (*ErrSvcRestartedForce) Error ¶
func (e *ErrSvcRestartedForce) Error() string
func (*ErrSvcRestartedForce) String ¶
func (e *ErrSvcRestartedForce) String() string
type ErrZeroPid ¶
type ErrZeroPid struct {
// contains filtered or unexported fields
}
func (*ErrZeroPid) Error ¶
func (e *ErrZeroPid) Error() string
func (*ErrZeroPid) String ¶
func (e *ErrZeroPid) String() string
type Service ¶
type Service struct { ProcessName string `yaml:"process_name"` Description string `yaml:"description"` Disabled bool `yaml:"disabled"` StartCmd string `yaml:"start_cmd"` CmdArgs []string `yaml:"cmd_args"` StopCmd string `yaml:"stop_cmd"` PythonVEnv string `yaml:"python_venv"` WorkingDir string `yaml:"working_directory"` PidFile string `yaml:"pid_file"` EnvList []string `yaml:"env_vars"` MailList []string `yaml:"mailing_list"` Logger *log.Logger // contains filtered or unexported fields }
func (*Service) RestartProcess ¶
Click to show internal directories.
Click to hide internal directories.