JBoss script

JBoss script

#!/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 Ratings Yet)
Loading...
383 views

3 thoughts on “JBoss script

  1. Aw, this was a really nice post. In concept I want to put in writing like this additionally – taking time and precise effort to make an excellent article… however what can I say… I procrastinate alot and on no account seem to get one thing done.

  2. Hi there, You have done an excellent job. I will definitely digg it and personally suggest to my friends. I’m confident they will be benefited from this site.

  3. &l™npo;&qbsp;Dâ€aaurès ma petite femme, le 5ème n’est pas ressemblant et donc introuvable, moi je vous fais confiance ! »Lol, c’est le seul que j’ai trouvé (et en deux temps trois mouvements).Le pendentif aide bien.

发表评论

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

跳至工具栏