From 32cc05259dc38f69ce77a033f01040c9feb76e13 Mon Sep 17 00:00:00 2001 From: jiangzeyin Date: Fri, 28 Sep 2018 18:06:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=91=BD=E4=BB=A4=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/command/run_boot.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bin/command/run_boot.sh b/bin/command/run_boot.sh index 6c49f34d5..19323571b 100755 --- a/bin/command/run_boot.sh +++ b/bin/command/run_boot.sh @@ -21,28 +21,25 @@ OLD_IFS="$IFS" IFS="]" array=($ARGS) IFS="$OLD_IFS" - +# JVM=${array[0]} ARGS=${array[1]} # 截取 JVM=${JVM:1} ARGS=${ARGS:1} - - -# See how we were called. +# 启动程序 start() { - pid=`getPid` if [ "$pid" != "" ]; then echo "Please do not repeat the call" status else backupLog $Log; - echo "JVM:$JVM" echo "args:$ARGS" + # java run nohup java $JVM -Dappliction=$Tag -Djava.ext.dirs=$Lib":${JAVA_HOME}/jre/lib/ext" $MainClass $ARGS > $Log 2>&1 & sleep 1s & status fi } @@ -97,6 +94,7 @@ getPid() echo $pid; } +#提示用法 usage() { echo "Usage: $0 {start|stop|restart|status} tag mainclass lib log WebClose JVM args"