Skip to content

Commit 4779fee

Browse files
committed
fix(Makefile): exit until loop if service becomes failed
1 parent d791866 commit 4779fee

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ start: check-fleet start-warning start-routers
6262
@# registry logger cache database
6363
$(call echo_yellow,"Waiting for deis-registry to start...")
6464
$(FLEETCTL) start -no-block $(START_UNITS)
65-
@until $(FLEETCTL) list-units | egrep -q "deis-registry.+(running)"; \
65+
@until $(FLEETCTL) list-units | egrep -q "deis-registry.+(running|failed)"; \
6666
do sleep 2; \
6767
printf "\033[0;33mStatus:\033[0m "; $(FLEETCTL) list-units | \
6868
grep "deis-registry" | awk '{printf "%-10s (%s) \r", $$4, $$5}'; \
@@ -73,7 +73,7 @@ start: check-fleet start-warning start-routers
7373
@# controller
7474
$(call echo_yellow,"Waiting for deis-controller to start...")
7575
$(FLEETCTL) start -no-block controller/systemd/*
76-
@until $(FLEETCTL) list-units | egrep -q "deis-controller.+(running)"; \
76+
@until $(FLEETCTL) list-units | egrep -q "deis-controller.+(running|failed)"; \
7777
do sleep 2; \
7878
printf "\033[0;33mStatus:\033[0m "; $(FLEETCTL) list-units | \
7979
grep "deis-controller" | awk '{printf "%-10s (%s) \r", $$4, $$5}'; \
@@ -84,7 +84,7 @@ start: check-fleet start-warning start-routers
8484
@# builder
8585
$(call echo_yellow,"Waiting for deis-builder to start...")
8686
$(FLEETCTL) start -no-block builder/systemd/*
87-
@until $(FLEETCTL) list-units | egrep -q "deis-builder.+(running)"; \
87+
@until $(FLEETCTL) list-units | egrep -q "deis-builder.+(running|failed)"; \
8888
do sleep 2; \
8989
printf "\033[0;33mStatus:\033[0m "; $(FLEETCTL) list-units | \
9090
grep "deis-builder" | awk '{printf "%-10s (%s) \r", $$4, $$5}'; \

0 commit comments

Comments
 (0)