added success messages when waiting services can access other servers
This commit is contained in:
parent
db9efbed97
commit
d7fbb2a9da
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user