update start.sh stop.sh

develop
SAM2O2O 3 years ago
parent 6717f02fd0
commit f1f2035e37

@ -18,7 +18,7 @@ fi
#### echo server is starting
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}')
###if server is running, exit and echo error
@ -29,7 +29,7 @@ if [ $PID > 0 ]; then
exit
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}')

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

Loading…
Cancel
Save