Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListServices ¶
ListServices lists all installed services on the running system
Types ¶
type Service ¶
type Service interface { // Installed will return a boolean value that denotes // whether or not the service is installed Installed() bool // Exists returns whether the service configuration exists in the // init directory with the same content that this Service would have // if installed. Exists() bool // Running returns a boolean value that denotes // whether or not the service is running Running() bool // Start will try to start the service Start() error // Stop will try to stop the service Stop() error // StopAndRemove will stop the service and remove it StopAndRemove() error // Remove will remove the service Remove() error // Install installs a service Install() error // Config adds a config to the service, overwritting the current one UpdateConfig(conf common.Conf) }
Service represents a service running on the current system
Click to show internal directories.
Click to hide internal directories.