Versions in this module Expand all Collapse all v1 v1.16.3 Nov 9, 2022 Changes in this version + type InitSystem interface + EnableCommand func(service string) string + ServiceExists func(service string) bool + ServiceIsActive func(service string) bool + ServiceIsEnabled func(service string) bool + ServiceRestart func(service string) error + ServiceStart func(service string) error + ServiceStop func(service string) error + func GetInitSystem() (InitSystem, error) + type OpenRCInitSystem struct — darwin/amd64, js/wasm, linux/amd64 + func (openrc OpenRCInitSystem) EnableCommand(service string) string + func (openrc OpenRCInitSystem) ServiceExists(service string) bool + func (openrc OpenRCInitSystem) ServiceIsActive(service string) bool + func (openrc OpenRCInitSystem) ServiceIsEnabled(service string) bool + func (openrc OpenRCInitSystem) ServiceRestart(service string) error + func (openrc OpenRCInitSystem) ServiceStart(service string) error + func (openrc OpenRCInitSystem) ServiceStop(service string) error + type SystemdInitSystem struct — darwin/amd64, js/wasm, linux/amd64 + func (sysd SystemdInitSystem) EnableCommand(service string) string + func (sysd SystemdInitSystem) ServiceExists(service string) bool + func (sysd SystemdInitSystem) ServiceIsActive(service string) bool + func (sysd SystemdInitSystem) ServiceIsEnabled(service string) bool + func (sysd SystemdInitSystem) ServiceRestart(service string) error + func (sysd SystemdInitSystem) ServiceStart(service string) error + func (sysd SystemdInitSystem) ServiceStop(service string) error + type WindowsInitSystem struct — windows/amd64 + func (sysd WindowsInitSystem) EnableCommand(service string) string + func (sysd WindowsInitSystem) ServiceExists(service string) bool + func (sysd WindowsInitSystem) ServiceIsActive(service string) bool + func (sysd WindowsInitSystem) ServiceIsEnabled(service string) bool + func (sysd WindowsInitSystem) ServiceRestart(service string) error + func (sysd WindowsInitSystem) ServiceStart(service string) error + func (sysd WindowsInitSystem) ServiceStop(service string) error