Remove setting S6_BEHAVIOUR_IF_STAGE2_FAILS=2 within cont-init.d script
This commit is contained in:
parent
709459b6ae
commit
c4d0bffcd8
@ -22,8 +22,7 @@ fi
|
|||||||
# Reduce default timeout to 1s because if the DB is not instantly available,
|
# 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,
|
# 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,
|
# 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..."
|
echo "Checking database responds within 1s on $dbhost:$eport..."
|
||||||
/srv/wait-for $dbhost:$eport --timeout=1
|
/srv/wait-for $dbhost:$eport --timeout=1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user