diff --git a/start.sh b/start.sh index 7587bc7..c8fdf88 100755 --- a/start.sh +++ b/start.sh @@ -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}') diff --git a/stop.sh b/stop.sh index 1a25366..ef07d07 100755 --- a/stop.sh +++ b/stop.sh @@ -2,7 +2,7 @@ PORT=$1 IS_RESTART=$2 -JAVA_JAR="openzaly-server" +JAVA_JAR="windchat-server" ##set tcp port if [ -n $PORT ]; then