put port checks into subshell to supress error messages
This commit is contained in:
parent
34ec6affbb
commit
d396a1ebef
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user