Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyInstalled = errors.New("service is already installed")
View Source
var ErrAlreadyRunning = errors.New("service is already ranning")
View Source
var ErrAlreadyStopped = errors.New("service had already been stopped")
View Source
var ErrInsufficientPrivileges = errors.New("insufficient privileges")
View Source
var ErrInvalidSystemResponse = errors.New("invalid system response")
View Source
var ErrNotInstalled = errors.New("service is not installed")
View Source
var ErrUnsupportedSystem = errors.New("unsupported system")
View Source
var OnSigterm func(signal os.Signal)
OnSigterm is a callback envoked when the application that runs a service needs to stop
Functions ¶
func Install ¶
func Install(params InstallParams) error
func MonitorSigterm ¶
func MonitorSigterm() chan bool
MonitorSigterm creates a sigterm channel for stopping a service
Types ¶
Click to show internal directories.
Click to hide internal directories.