update sh
This commit is contained in:
parent
20e2769b66
commit
ef6c270181
30
start.sh
30
start.sh
@ -4,28 +4,6 @@ PORT=$1
|
|||||||
PORT2=$2
|
PORT2=$2
|
||||||
IS_RESTART=$3
|
IS_RESTART=$3
|
||||||
|
|
||||||
if [ -z $IS_RESTART ];then
|
|
||||||
#### echo akaxin logo and desc
|
|
||||||
echo "
|
|
||||||
|
|
||||||
/ \
|
|
||||||
/ . \
|
|
||||||
\ . \
|
|
||||||
/ \ \ / _ _ __ _ __ __ ___ _ _
|
|
||||||
/ . \ | / / \ / \ | |/ / / \ \ \/ / |_ _| | \ | |
|
|
||||||
/ . _ \ / / . \ / _ \ | ' / / _ \ \ / | | | \| |
|
|
||||||
\ / / \ - . / / ___ \ | . \ / ___ \ / \ | | | |\ |
|
|
||||||
\ / / | \ / /_/ \_\ |_|\_\ /_/ \_\ /_/\_\ |___| |_| \_|
|
|
||||||
/ . \ \ /
|
|
||||||
\ . \
|
|
||||||
\ /
|
|
||||||
\ /
|
|
||||||
|
|
||||||
Akaxin is an open source and free proprietary IM software,you can build private openzaly-server for everyone in any server.
|
|
||||||
|
|
||||||
"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
##set tcp port
|
##set tcp port
|
||||||
if [ -n $PORT ]; then
|
if [ -n $PORT ]; then
|
||||||
@ -38,15 +16,15 @@ if [ -n $PORT2 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
#### echo server is starting
|
#### 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}')
|
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
|
||||||
if [ $PID > 0 ]; then
|
if [ $PID > 0 ]; then
|
||||||
echo "[ERROR] openzaly-server is running [PID:"$PID"]"
|
echo "[ERROR] windchat is running [PID:"$PID"]"
|
||||||
echo "[ERROR] openzaly-server start failure"
|
echo "[ERROR] windchat start failure"
|
||||||
echo ""
|
echo ""
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user