jboss启动脚本
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jboss启动脚本相关的知识,希望对你有一定的参考价值。
Tired of running seperate scripts for jBoss with/out jRebel and manual cleaning temp.
#!/bin/bash while getopts ":crp" optname do case "$optname" in "c") echo "Cleaning ears" rm -fv jboss-5.1.0.GA/server/default/deploy/*.ear echo "Cleaning work" rm -rf jboss-5.1.0.GA/server/default/work/ echo "Cleaning tmp" rm -rf jboss-5.1.0.GA/server/default/tmp/ echo "Cleaning log" rm -rf jboss-5.1.0.GA/server/default/log/ ;; "r") echo "Running with rebel" export JAVA_OPTS="-noverify -javaagent:/home/dogrizz/tools/jrebel/jrebel.jar -Xms256m -Xmx1024m -XX:MaxPermSize=512m -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n -XX:+UseParallelGC $JAVA_OPTS" jboss-5.1.0.GA/bin/run.sh -b 0.0.0.0 ;; "p") echo "Running without rebel" export JAVA_OPTS="" jboss-5.1.0.GA/bin/run.sh -b 0.0.0.0 ;; "?") echo "Unknown option $OPTARG" ;; ":") echo "No argument value for option $OPTARG" ;; *) # Should not occur echo "Unknown error while processing options" ;; esac done
以上是关于jboss启动脚本的主要内容,如果未能解决你的问题,请参考以下文章
LinuxserverJboss执行环境搭建步骤和开机自己主动启动脚本编写执行