mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-10-27 22:12:15 +08:00
fix: script update
Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com>
This commit is contained in:
parent
6021080e7b
commit
60383415d7
@ -60,7 +60,7 @@ done
|
|||||||
|
|
||||||
sleep 3
|
sleep 3
|
||||||
#Check launched service process
|
#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
|
if [ $check -ge 1 ]; then
|
||||||
newPid=$(ps -axu| grep -w ./${push_name} | grep -v grep | awk '{print $2}')
|
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}')
|
ports=$(netstat -netulp | grep -w ${newPid} | awk '{print $4}' | awk -F '[:]' '{print $NF}')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user