mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
scripts for Mac
This commit is contained in:
parent
e81803a53d
commit
0e61c3acef
@ -413,11 +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
|
||||||
echo aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
|
||||||
local command=$(ps -p $pid -o comm=)
|
local command=$(ps -p $pid -o comm=)
|
||||||
|
|
||||||
echo "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)
|
||||||
|
|
||||||
@ -427,7 +423,6 @@ openim::util::check_process_names() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
started+=("Process $process_name - Command: $command, PID: $pid, Port: $port, Start time: $start_time")
|
started+=("Process $process_name - Command: $command, PID: $pid, Port: $port, Start time: $start_time")
|
||||||
echo bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb $started
|
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@ -494,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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user