Optimizing scripts

pull/2100/head
skiffer-git 2 years ago
parent df32828712
commit 036e00eff0

@ -603,7 +603,7 @@ openim::util::stop_services_with_name() {
# Iterate over each given service name.
for server_name in "$@"; do
# Use the `pgrep` command to find process IDs related to the given service name.
echo "Stopping services with names: $server_name"
echo "Stopping services with name: $server_name"
local pids=$(pgrep -f "$server_name")
# If no process was found with the name, add it to the not_stopped list

Loading…
Cancel
Save