mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 11:52:10 +08:00
Optimizing scripts
This commit is contained in:
parent
df32828712
commit
036e00eff0
@ -603,7 +603,7 @@ openim::util::stop_services_with_name() {
|
|||||||
# Iterate over each given service name.
|
# Iterate over each given service name.
|
||||||
for server_name in "$@"; do
|
for server_name in "$@"; do
|
||||||
# Use the `pgrep` command to find process IDs related to the given service name.
|
# 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")
|
local pids=$(pgrep -f "$server_name")
|
||||||
|
|
||||||
# If no process was found with the name, add it to the not_stopped list
|
# If no process was found with the name, add it to the not_stopped list
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user