|
@@ -3,14 +3,14 @@
|
|
|
ROOT=$(cd `dirname $0`/../../; pwd)
|
|
|
cd $ROOT
|
|
|
APP_NAME=blackbox-insert
|
|
|
-# JAVA_HOME=$ROOT/jdk8
|
|
|
+JAVA_HOME=$ROOT/jdk8
|
|
|
JAR_NAME=$ROOT/lib/insert-app-0.0.1-SNAPSHOT.jar
|
|
|
#PID 代表是PID文件
|
|
|
PID=$ROOT/pid/$APP_NAME\.pid
|
|
|
|
|
|
|
|
|
usage() {
|
|
|
- echo "Usage: sh 执行脚本.sh [start|stop|restart|status]"
|
|
|
+ echo "Usage: sh 执行脚本.sh [start|stop|restart|status|force_stop]"
|
|
|
exit 1
|
|
|
}
|
|
|
|
|
@@ -108,6 +108,9 @@ case "$1" in
|
|
|
"restart")
|
|
|
restart
|
|
|
;;
|
|
|
+ "force_stop")
|
|
|
+ restart
|
|
|
+ ;;
|
|
|
*)
|
|
|
usage
|
|
|
;;
|