func (c *Concierge) fetchService() (*mgr.Service, error) {
	m, err := mgr.Connect()
	if err != nil {
		return nil, errors.Wrap(err, "could not open SCM")
	}
	defer m.Disconnect()

	service, err := m.OpenService(c.name)
	if err != nil {
		return nil, errors.Wrap(err, "could not open service")
	}

	return service, nil
}
// fetchService retrieves the Windows service.
fetchService retrieves the Windows service.
// fetchService retrieves the Windows service .
func (c *Concierge) fetchService() (*mgr.Service, error) {
	m, err := mgr.Connect()
	if err != nil {
		return nil, errors.Wrap(err, "could not open SCM")
	}
	defer m.Disconnect()
	service, err := m.OpenService(c.name)
	if err != nil {
		return nil, errors.Wrap(err, "could not open service")
	}
	return service, nil
}
func ( c * Concierge ) fetchService ( ) ( * mgr . Service , error ) { m , err := mgr . Connect ( ) if err != nil { return nil , errors . Wrap ( err , " " ) } defer m . Disconnect ( ) service , err := m . OpenService ( c . name ) if err != nil { return nil , errors . Wrap ( err , " " ) } return service , nil }
fetchService retrieves the Windows service.
fetchService retrieves the Windows service .