update start.sh stop.sh

This commit is contained in:
SAM2O2O 2019-11-27 23:46:00 +08:00
parent 6717f02fd0
commit f1f2035e37
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ fi
#### echo server is starting #### echo server is starting
echo "[OK] WindChat is starting [tcp-port:"$PORT" http-port:"$PORT2"]" echo "[OK] WindChat is starting [tcp-port:"$PORT" http-port:"$PORT2"]"
JAVA_JAR="windchat-boot" JAVA_JAR="windchat-server"
PID=$(ps -ef|grep $JAVA_JAR|grep $PORT |head -1| awk '{printf $2}') PID=$(ps -ef|grep $JAVA_JAR|grep $PORT |head -1| awk '{printf $2}')
###if server is running, exit and echo error ###if server is running, exit and echo error
@ -29,7 +29,7 @@ if [ $PID > 0 ]; then
exit exit
fi fi
java -Dsite.port=$PORT -Dhttp.port=$PORT2 -jar openzaly-server.jar >>stdout.log 2>&1 & java -Dsite.port=$PORT -Dhttp.port=$PORT2 -jar $JAVA_JAR.jar >>stdout.log 2>&1 &
PID=$(ps -ef|grep $JAVA_JAR|grep $PORT |head -1| awk '{printf $2}') PID=$(ps -ef|grep $JAVA_JAR|grep $PORT |head -1| awk '{printf $2}')

View File

@ -2,7 +2,7 @@
PORT=$1 PORT=$1
IS_RESTART=$2 IS_RESTART=$2
JAVA_JAR="openzaly-server" JAVA_JAR="windchat-server"
##set tcp port ##set tcp port
if [ -n $PORT ]; then if [ -n $PORT ]; then