Browsed by
标签:JBoss

好烂啊有点差凑合看看还不错很精彩 (No Ratings Yet)
Loading...
458 views
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-
跳至工具栏