Allow the console app to be run as a service.