Documentation ¶
Index ¶
- func SvScanWriteCtlAt(fd int, s string) error
- func SvcWriteCtlAt(fd int, s string) error
- type Service
- func (svc Service) Close() error
- func (svc Service) NotificationFd() (int, error)
- func (svc Service) OpenEvent() (ftrigr.FtrigR, error)
- func (svc Service) Status() (SvStatus, error)
- func (svc Service) Svc(ctx context.Context, msg string) error
- func (svc Service) WriteConfig(s ServiceDefinition) error
- type ServiceDefinition
- type SvStatus
- type SvscanScripts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service int
func (Service) WriteConfig ¶
func (svc Service) WriteConfig(s ServiceDefinition) error
type ServiceDefinition ¶
type ServiceDefinition struct { Argv execline.Argv `json:"argv"` Envp []string `json:"envp"` Finish execline.Argv `json:"finish"` Down bool `json:"down"` NotificationFd uintptr `json:"notification-fd"` CloneNewPID bool `json:"clone-newpid"` TimeoutKill uintptr `json:"timeout-kill"` TimeoutFinish uintptr `json:"timeout-finish"` MaxDeathTally uintptr `json:"max-death-tally"` DownSignal uintptr `json:"down-signal"` }
func (*ServiceDefinition) UnmarshalJSON ¶
func (svc *ServiceDefinition) UnmarshalJSON(data []byte) error
type SvStatus ¶
type SvStatus struct { Pid uint64 `json:"pid"` Wstat uint16 `json:"wstat"` Stamp djbunix.Tai64N `json:"stamp"` ReadyStamp djbunix.Tai64N `json:"readystamp"` Paused bool `json:"paused"` Finishing bool `json:"finishing"` Want bool `json:"want"` WantUp bool `json:"wantup"` Ready bool `json:"ready"` Throttled bool `json:"throttled"` }
type SvscanScripts ¶
type SvscanScripts struct { SigTerm execline.Argv `json:"SIGTERM"` SigHup execline.Argv `json:"SIGHUP"` SigQuit execline.Argv `json:"SIGQUIT"` SigInt execline.Argv `json:"SIGINT"` SigUsr1 execline.Argv `json:"SIGUSR1"` SigUsr2 execline.Argv `json:"SIGUSR2"` SigPwr execline.Argv `json:"SIGPWR"` SigWinch execline.Argv `json:"SIGWINCH"` Crash execline.Argv `json:"crash"` Finish execline.Argv `json:"finish"` }
func (*SvscanScripts) WriteDir ¶
func (sigs *SvscanScripts) WriteDir(cwd int) error
Click to show internal directories.
Click to hide internal directories.