I have a console application that starts up, hosts a bunch of services (long-running startup), and then waits for clients to call into it. I have integration tests that star
Include an is ready check in the app's client interface, or have it return a not ready error if called before it's ready.