put port checks into subshell to supress error messages

This commit is contained in:
André Bauer 2017-03-10 09:48:09 +01:00
parent 34ec6affbb
commit d396a1ebef
3 changed files with 6 additions and 6 deletions

View File

@ -3,8 +3,8 @@
if [ "$1" = 'zammad-railsserver' ]; then
# wait for postgres process coming up on zammad-postgresql
until echo > /dev/tcp/zammad-postgresql/5432; do
echo "waiting for postgres to be ready..."
until (echo > /dev/tcp/zammad-postgresql/5432) &> /dev/null; do
echo "zammad waiting for postgresql server to be ready..."
sleep 5
done

View File

@ -2,8 +2,8 @@
if [ "$1" = 'zammad-scheduler' ]; then
# wait for zammad process coming up
until echo > /dev/tcp/zammad-railsserver/3000; do
echo "waiting for zammad to be ready..."
until (echo > /dev/tcp/zammad-railsserver/3000) &> /dev/null; do
echo "scheduler waiting for zammads railsserver to be ready..."
sleep 2
done

View File

@ -2,8 +2,8 @@
if [ "$1" = 'zammad-websocket' ]; then
# wait for zammad process coming up
until echo > /dev/tcp/zammad-railsserver/3000; do
echo "waiting for zammad to be ready..."
until (echo > /dev/tcp/zammad-railsserver/3000) &> /dev/null; do
echo "websocket server waiting for zammads railsserver to be ready..."
sleep 5
done