mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-08 11:05:59 +08:00
Merge pull request #2126 from skiffer-git/release-v3.6
The check script is not compatible with Mac.
This commit is contained in:
+2
-2
@@ -413,7 +413,7 @@ openim::util::check_process_names() {
|
|||||||
else
|
else
|
||||||
# If there are PIDs, loop through each one
|
# If there are PIDs, loop through each one
|
||||||
for pid in "${pids[@]}"; do
|
for pid in "${pids[@]}"; do
|
||||||
local command=$(ps -p $pid -o cmd=)
|
local command=$(ps -p $pid -o comm=)
|
||||||
local start_time=$(ps -p $pid -o lstart=)
|
local start_time=$(ps -p $pid -o lstart=)
|
||||||
local port=$(get_port $pid)
|
local port=$(get_port $pid)
|
||||||
|
|
||||||
@@ -489,7 +489,7 @@ openim::util::check_process_names_for_stop() {
|
|||||||
else
|
else
|
||||||
# If there are PIDs, loop through each one
|
# If there are PIDs, loop through each one
|
||||||
for pid in "${pids[@]}"; do
|
for pid in "${pids[@]}"; do
|
||||||
local command=$(ps -p $pid -o cmd=)
|
local command=$(ps -p $pid -o comm=)
|
||||||
local start_time=$(ps -p $pid -o lstart=)
|
local start_time=$(ps -p $pid -o lstart=)
|
||||||
local port=$(get_port $pid)
|
local port=$(get_port $pid)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user