JBoss script

JBoss script

閱讀本文約花費: <1 (分鐘)

#!/bin/sh cd jboss/bin/jboss-cli.sh --connect --command=:shutdown rm ~/jboss/standalone/deployments/*.war.* nohup jboss/bin/standalone.sh& sleep 10 cd ~/jboss/standalone/deployments while true do for file in *.war.isdeploying do echo "waitting 1s" echo $file sleep 1; done if [ "$file" = "*.war.isdeploying" ] then break; fi done for file in *.war.failed do if [ "$file" = "*.war.failed" ] then echo "ALL OK" exit 0 fi echo $file done exit 4444 -end-
No tags for this post.

发表评论

电子邮件地址不会被公开。 必填项已用*标注

Scroll Up