How to configure a service