mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-31 06:56:58 +08:00
Script Refactoring
This commit is contained in:
parent
35b892cafd
commit
86cd9097a6
@ -391,9 +391,9 @@ openim::util::check_process_names() {
|
|||||||
local running_count=$(ps -ef | grep "$process_path" | grep -v grep | wc -l)
|
local running_count=$(ps -ef | grep "$process_path" | grep -v grep | wc -l)
|
||||||
|
|
||||||
if [ "$running_count" -eq "$expected_count" ]; then
|
if [ "$running_count" -eq "$expected_count" ]; then
|
||||||
return 0
|
echo 0
|
||||||
else
|
else
|
||||||
return $(($expected_count - $running_count))
|
echo $(($expected_count - $running_count))
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user