Skip to content

Commit

Permalink
fix: address already in use
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Jul 24, 2024
1 parent 6933cae commit 142dec8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions DOCKER/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,14 @@ if [ ! -d "$TMHOME/config" ]; then
fi

exec tenderdash "$@"
local exit_code=$?

# TODO: Workaround for busy port problem happening with docker restart policy
# we are trying to start a new container but previous process still not release
# the port. Must be fix with graceful shutdown of tenderdash process.
if [ $exit_code -ne 0 ] && [ "$1" == "start" ]; then
echo "Sleeping for 10 seconds as workaround for the busy port problem. See entrypoint code for details."
sleep 10
fi

exit $error_code

0 comments on commit 142dec8

Please sign in to comment.