update start.sh stop.sh
This commit is contained in:
parent
6717f02fd0
commit
f1f2035e37
4
start.sh
4
start.sh
@ -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}')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user