fixed start.sh #1879 (#1900)

This commit is contained in:
AfeiJavaer 2018-06-07 19:30:58 +08:00 committed by Xin Wang
parent 28266668d3
commit 5916e8b1e8
1 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ while [ $COUNT -lt 1 ]; do
COUNT=`netstat -an | grep $SERVER_PORT | wc -l`
fi
else
COUNT=`ps -f | grep java | grep -v grep | grep "$DEPLOY_DIR" | awk '{print $2}' | wc -l`
COUNT=`ps -ef | grep java | grep -v grep | grep "$DEPLOY_DIR" | awk '{print $2}' | wc -l`
fi
if [ $COUNT -gt 0 ]; then
break
@ -87,6 +87,6 @@ while [ $COUNT -lt 1 ]; do
done
echo "OK!"
PIDS=`ps -f | grep java | grep -v grep | grep "$DEPLOY_DIR" | awk '{print $2}'`
PIDS=`ps -ef | grep java | grep -v grep | grep "$DEPLOY_DIR" | awk '{print $2}'`
echo "PID: $PIDS"
echo "STDOUT: $STDOUT_FILE"