From e9b9b7247e55ea6d37af2ae79f89f4222708628b Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Thu, 22 Feb 2024 19:51:13 +0800 Subject: [PATCH] log --- scripts/lib/util.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/lib/util.sh b/scripts/lib/util.sh index 153cf6a0c..44bfa663c 100755 --- a/scripts/lib/util.sh +++ b/scripts/lib/util.sh @@ -2883,17 +2883,20 @@ function openim::util::gen_os_arch() { function openim::util::check_process_names_for_stop() { local all_stopped=true - + echo "dddddddddddddddddddddddddddddddddddd" for service in "${OPENIM_ALL_SERVICE_LIBRARIES[@]}"; do + echo "dddddddddddddddddddddddddddddddddddd" ${server} + PIDS=$(pgrep -f "${service}") || PIDS="0" if [ "$PIDS" = "0" ]; then continue fi - all_stopped=false - NUM_PROCESSES=$(echo "$PIDS" | wc -l | xargs) + NUM_PROCESSES=$(echo "$PIDS" | wc -l | xargs) + echo "dddddddddddddddddddddddddddddddddddd" ${NUM_PROCESSES} if [ "$NUM_PROCESSES" -gt 0 ]; then + all_stopped=false openim::log::error "Found $NUM_PROCESSES processes for ${service}" for PID in $PIDS; do if [[ "$OSTYPE" == "linux-gnu"* ]]; then