|
|
@ -415,7 +415,7 @@ openim::util::check_process_names() {
|
|
|
|
for pid in "${pids[@]}"; do
|
|
|
|
for pid in "${pids[@]}"; do
|
|
|
|
local command=$(ps -p $pid -o cmd=)
|
|
|
|
local command=$(ps -p $pid -o cmd=)
|
|
|
|
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 | tr -d '\n') # Use `tr` to remove newline characters
|
|
|
|
|
|
|
|
|
|
|
|
# Check if port information was found for the PID
|
|
|
|
# Check if port information was found for the PID
|
|
|
|
if [[ -z $port ]]; then
|
|
|
|
if [[ -z $port ]]; then
|
|
|
@ -427,6 +427,7 @@ openim::util::check_process_names() {
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Print information
|
|
|
|
# Print information
|
|
|
|
if [[ ${#not_started[@]} -ne 0 ]]; then
|
|
|
|
if [[ ${#not_started[@]} -ne 0 ]]; then
|
|
|
|
echo "Not started processes:"
|
|
|
|
echo "Not started processes:"
|
|
|
|