Browse Source

update start.sh stop.sh

deason 2 months ago
parent
commit
e6bae149f6
2 changed files with 2 additions and 3 deletions
  1. 1 2
      shell/start.sh
  2. 1 1
      shell/stop.sh

+ 1 - 2
shell/start.sh

@@ -1,7 +1,6 @@
 #!/bin/bash
 
-PROJECT_JAR=`find . -name "examcloud-app-api*.jar"`
-PROJECT_JAR=${PROJECT_JAR:6}
+PROJECT_JAR="examcloud-app-api.jar"
 
 PROJECT_ARGS=`cat start.args`
 PROJECT_ARGS=$PROJECT_ARGS" --sys.config.center.secretKey="$1

+ 1 - 1
shell/stop.sh

@@ -1,6 +1,6 @@
 #!/bin/bash
 
-PROJECT_JAR="examcloud-app-api"
+PROJECT_JAR="examcloud-app-api.jar"
 
 ps -ef | grep $PROJECT_JAR | grep java | awk '{printf("kill -15 %s\n",$2)}' | sh
 BUILD_ID=DONTKILLME