Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorNotImplementedForOS = errors.New("Services list not implemented for " + runtime.GOOS)
ErrorNotImplementedForOS returned in case we don't yet implement service manager parsing or this OS. Should be checked and ignored
Functions ¶
func ListServices ¶
ListServices detect the linux system manager and parse/combine results
Types ¶
type OpenRCService ¶
OpenRCService contains the service data parsed from rc-status (OpenRC init system)
type SysVService ¶
SysVService contains the service data parsed from service(Sysvinit) or initctl(Upstart)
func ListUpstartServices ¶
func ListUpstartServices() ([]SysVService, error)
ListUpstartServices list upstart services via `initctl list`. Returns []SysVService because Upstart is compatible with SysVInit and has the same details
Click to show internal directories.
Click to hide internal directories.