diff --git a/scripts/lib/util.sh b/scripts/lib/util.sh index 44bfa663c..271606c41 100755 --- a/scripts/lib/util.sh +++ b/scripts/lib/util.sh @@ -2885,7 +2885,7 @@ 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} + echo "dddddddddddddddddddddddddddddddddddd" ${service} PIDS=$(pgrep -f "${service}") || PIDS="0" if [ "$PIDS" = "0" ]; then diff --git a/scripts/stop-all.sh b/scripts/stop-all.sh index 2120c5345..f3457f599 100755 --- a/scripts/stop-all.sh +++ b/scripts/stop-all.sh @@ -35,7 +35,7 @@ openim::util::stop_services_with_name "${OPENIM_OUTPUT_HOSTBIN}" - +sleep 5 result=$(openim::util::check_process_names_for_stop) if [[ $? -ne 0 ]]; then