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 if [ "$1" = 'zammad-railsserver' ]; then
# wait for postgres process coming up on zammad-postgresql # wait for postgres process coming up on zammad-postgresql
until echo > /dev/tcp/zammad-postgresql/5432; do until (echo > /dev/tcp/zammad-postgresql/5432) &> /dev/null; do
echo "waiting for postgres to be ready..." echo "zammad waiting for postgresql server to be ready..."
sleep 5 sleep 5
done done

View File

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

View File

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