Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Signal sent by the "ACPI tiny power button" kernel driver. // It is assumed the kernel will be compiled to use it. SIGPWRBTN = syscall.Signal(0x26) // Flag indicating process is a kernel thread, from include/linux/sched.h. PF_KTHREAD = 0x00200000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChronyService ¶
type ChronyService struct {
// contains filtered or unexported fields
}
type SSHDService ¶
type SSHDService struct {
// contains filtered or unexported fields
}
type Service ¶
type Service interface {
Start() error
WaitInit()
WaitStart()
WaitStop() error
Stop()
Optional() bool
PID() int
}
func NewChronyService ¶
func NewChronyService() Service
func NewMainService ¶
func NewSSHDService ¶
func NewSSHDService() Service
type Supervisor ¶
type Supervisor struct {
Main Service
ReadonlyRootFS bool
Services []Service
Timeout time.Duration
}
func (*Supervisor) Kill ¶
func (s *Supervisor) Kill()
func (*Supervisor) Start ¶
func (s *Supervisor) Start() error
func (*Supervisor) Stop ¶
func (s *Supervisor) Stop()
func (*Supervisor) Wait ¶
func (s *Supervisor) Wait()
Click to show internal directories.
Click to hide internal directories.