Versions in this module Expand all Collapse all v0 v0.3.1 Nov 6, 2024 v0.3.0 May 20, 2024 Changes in this version + type Command struct + Spec CommandSpec + Status CommandStatus + type CommandSpec struct + Args []string + Command string + func Cmd(cmd string, args ...string) CommandSpec + func (c *CommandSpec) String() string + type CommandStatus struct + Message string + Pid int + State ProcessState + type CooldownError struct + Duration time.Duration + type Proc struct + func StartProcess(logger *logrus.Entry, terminationSignal syscall.Signal, ...) (*Proc, error) + func (p *Proc) Pid() int + func (p *Proc) Running() bool + func (p *Proc) Signal(sig syscall.Signal) error + func (p *Proc) Stop() + func (p *Proc) Wait() error + type ProcessState string + const ProcessStateExited + const ProcessStateFailed + const ProcessStateRunning + type Runner struct + Reporter StatusReportFunc + TerminationGracePeriod time.Duration + TerminationSignal syscall.Signal + func New(logger *logrus.Entry) *Runner + func (m *Runner) SignalReload() error + func (m *Runner) Start(cmd CommandSpec) (started bool, err error) + func (m *Runner) Stop() + type StatusReportFunc func(cmd Command)