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