Versions in this module Expand all Collapse all v0 v0.6.0-2 Oct 23, 2014 v0.5.0 Sep 30, 2014 Changes in this version + const Down + const Starting + const Unknown + const Up + var ErrServiceNotFound = errors.New("No such service") + var SupportedInits = []func() (InitSystem, error) + type InitSystem interface + LookupService func(name string) (*ProcessStatus, error) + Name func() string + Restart func(name string) error + func Detect() []InitSystem + type Launchd struct + func (l *Launchd) LookupService(serviceName string) (*ProcessStatus, error) + func (l *Launchd) Name() string + func (l *Launchd) Restart(serviceName string) error + type MockInitSystem struct + Actions []string + CurrentStatus *ProcessStatus + func MockInit() *MockInitSystem + func (m *MockInitSystem) LookupService(name string) (*ProcessStatus, error) + func (m *MockInitSystem) Name() string + func (m *MockInitSystem) Restart(name string) error + type ProcessStatus struct + Pid int + func NewStatus() *ProcessStatus + func (s *ProcessStatus) String() string + type Runit struct + func (r *Runit) LookupService(serviceName string) (*ProcessStatus, error) + func (r *Runit) Name() string + func (r *Runit) Restart(serviceName string) error + type ServiceError struct + Err error + Init string + Name string + func (e *ServiceError) Error() string + type Status string + func (s Status) String() string + type Systemd struct + func (u *Systemd) LookupService(serviceName string) (*ProcessStatus, error) + func (u *Systemd) Name() string + func (u *Systemd) Restart(serviceName string) error + type Upstart struct + func (u *Upstart) LookupService(serviceName string) (*ProcessStatus, error) + func (u *Upstart) Name() string + func (u *Upstart) Restart(serviceName string) error