added success messages when waiting services can access other servers

This commit is contained in:
André Bauer 2017-04-24 00:25:43 +02:00
parent db9efbed97
commit d7fbb2a9da
3 changed files with 7 additions and 1 deletions

View File

@ -4,10 +4,12 @@ if [ "$1" = 'zammad-railsserver' ]; then
# wait for postgres process coming up on zammad-postgresql
until (echo > /dev/tcp/zammad-postgresql/5432) &> /dev/null; do
echo "zammad waiting for postgresql server to be ready..."
echo "zammad railsserver waiting for postgresql server to be ready..."
sleep 5
done
echo "railsserver can access postgresql server now..."
cd ${ZAMMAD_DIR}
bundle exec rake db:migrate &> /dev/null

View File

@ -7,6 +7,8 @@ if [ "$1" = 'zammad-scheduler' ]; then
sleep 2
done
echo "scheduler can access raillsserver now..."
# start scheduler
cd ${ZAMMAD_DIR}
bundle exec script/scheduler.rb run

View File

@ -7,6 +7,8 @@ if [ "$1" = 'zammad-websocket' ]; then
sleep 5
done
echo "websocket server can access raillsserver now..."
cd ${ZAMMAD_DIR}
bundle exec script/websocket-server.rb -b 0.0.0.0 start
fi