Fix: when restart server, the status of connected session not fix.

pull/105/head v3.0.2.9-beta
Apex Lu 2018-09-02 16:51:05 +08:00
parent ea9c3135d1
commit f565a7c92f
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@ if [ $SRV == all ] || [ $SRV == web ] ; then
echo "already running, skip." echo "already running, skip."
else else
$DAEMON_PATH/bin/tp_web start $DAEMON_PATH/bin/tp_web start
sleep 5s
result=$( ps ax | grep "$DAEMON_PATH/bin/tp_web start" | grep -v grep | wc -l ) result=$( ps ax | grep "$DAEMON_PATH/bin/tp_web start" | grep -v grep | wc -l )
if [ ! $result -gt 0 ]; then if [ ! $result -gt 0 ]; then