update sh

This commit is contained in:
SAM2O2O 2019-07-31 23:10:05 +08:00
parent 20e2769b66
commit ef6c270181
1 changed files with 4 additions and 26 deletions

View File

@ -4,28 +4,6 @@ PORT=$1
PORT2=$2
IS_RESTART=$3
if [ -z $IS_RESTART ];then
#### echo akaxin logo and desc
echo "
/ \
/ . \
\ . \
/ \ \ / _ _ __ _ __ __ ___ _ _
/ . \ | / / \ / \ | |/ / / \ \ \/ / |_ _| | \ | |
/ . _ \ / / . \ / _ \ | ' / / _ \ \ / | | | \| |
\ / / \ - . / / ___ \ | . \ / ___ \ / \ | | | |\ |
\ / / | \ / /_/ \_\ |_|\_\ /_/ \_\ /_/\_\ |___| |_| \_|
/ . \ \ /
\ . \
\ /
\ /
Akaxin is an open source and free proprietary IM softwareyou can build private openzaly-server for everyone in any server.
"
fi
##set tcp port
if [ -n $PORT ]; then
@ -38,15 +16,15 @@ if [ -n $PORT2 ]; then
fi
#### echo server is starting
echo "[OK] openzaly-server is starting [tcp-port:"$PORT" http-port:"$PORT2"]"
echo "[OK] WindChat is starting [tcp-port:"$PORT" http-port:"$PORT2"]"
JAVA_JAR="openzaly-server"
JAVA_JAR="windchat-boot"
PID=$(ps -ef|grep $JAVA_JAR|grep $PORT |head -1| awk '{printf $2}')
###if server is running, exit and echo error
if [ $PID > 0 ]; then
echo "[ERROR] openzaly-server is running [PID:"$PID"]"
echo "[ERROR] openzaly-server start failure"
echo "[ERROR] windchat is running [PID:"$PID"]"
echo "[ERROR] windchat start failure"
echo ""
exit
fi