deis/deis — pull request #1201 by mboersma (2014-06-20 23:29:49+00:00)
Title: fix(Makefile): exit until loop if service becomes failed

If a deis service goes into "failed/failed" state, we won't detect that in our Makefile start loops and will instead just loop forever. (This was my oversight when trying to figure out new `fleet` states after we upgraded from v0.2.0.)

TESTING: Do `vagrant halt` on a running Deis VM instance, then `vagrant up`, and you have a decent chance of a service getting confused and failing. Or kill your internet connection while deis-registry is in an `ExecPreStart` job. It's tricky; it happens though. Previously `make run` would loop forever, now it will exit with an appropriate error message.