A newly started program can be running before it is ready. Check the service in stages so a single passing indicator has a clear meaning.
Deployment · Lesson 4
Health Checks
Learn to combine a process check, a service check, and a client request after deployment.