From 753ba6f08f533facdbc7476e6b1eeafddce97071 Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Thu, 21 Mar 2024 18:47:29 +0800 Subject: [PATCH] Optimizing scripts --- scripts/lib/util.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/lib/util.sh b/scripts/lib/util.sh index 117e46c08..9588f727d 100755 --- a/scripts/lib/util.sh +++ b/scripts/lib/util.sh @@ -605,6 +605,7 @@ openim::util::stop_services_with_name() { # Use the `pgrep` command to find process IDs related to the given service name. echo "Stopping services with name: $server_name" local pids=$(pgrep -f "$server_name") + echo "Stopping services with name: $server_name "$pids # If no process was found with the name, add it to the not_stopped list if [[ -z $pids ]]; then