run the app as a service