Wait until tomcat finishes starting up

前端 未结 8 2196
囚心锁ツ
囚心锁ツ 2020-12-24 13:29

I have a script that needs to run after tomcat has finished starting up and is ready to start deploying applications. I\'m using $TOMCAT_HOME/bin/startup.sh whi

8条回答
  •  不思量自难忘°
    2020-12-24 13:51

    I needed this to test from jenkins if the tomcat from the remote server started for a system check.

    until [[ `ssh -o StrictHostKeyChecking=no root@${DEPLOY_HOST} 'netstat -tulpn | grep 8005'` != "" ]] ; do echo "waiting for tomcat"; sleep 6; done

提交回复
热议问题