diff --git a/scripts/push_start.sh b/scripts/push_start.sh index a909301a7..ed32a8750 100755 --- a/scripts/push_start.sh +++ b/scripts/push_start.sh @@ -60,7 +60,7 @@ done sleep 3 #Check launched service process -check=$(ps | grep -w ./${push_name} | grep -v grep | wc -l) +check=$(ps -axu| grep -w ./${push_name} | grep -v grep | wc -l) if [ $check -ge 1 ]; then newPid=$(ps -axu| grep -w ./${push_name} | grep -v grep | awk '{print $2}') ports=$(netstat -netulp | grep -w ${newPid} | awk '{print $4}' | awk -F '[:]' '{print $NF}')