From c4d0bffcd8021d52d40268b7ec6eaf3936baa54a Mon Sep 17 00:00:00 2001 From: David Young Date: Fri, 21 Jul 2017 23:22:43 +1200 Subject: [PATCH] Remove setting S6_BEHAVIOUR_IF_STAGE2_FAILS=2 within cont-init.d script --- root/etc/cont-init.d/98-wait-for-db | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/root/etc/cont-init.d/98-wait-for-db b/root/etc/cont-init.d/98-wait-for-db index eff8288..ee6774a 100644 --- a/root/etc/cont-init.d/98-wait-for-db +++ b/root/etc/cont-init.d/98-wait-for-db @@ -22,8 +22,7 @@ fi # Reduce default timeout to 1s because if the DB is not instantly available, # Then it's even if it _happens_ to become available while we're testing, # it won't be ready for us yet. Better to exit and restart the container altogether, -# So set "S6_BEHAVIOUR_IF_STAGE2_FAILS=2" below +# So set "S6_BEHAVIOUR_IF_STAGE2_FAILS=2" in docker-compose.yml if you need this (i.e., in swarm mode, where dependencies don't work) -S6_BEHAVIOUR_IF_STAGE2_FAILS=2 echo "Checking database responds within 1s on $dbhost:$eport..." /srv/wait-for $dbhost:$eport --timeout=1