mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-06 13:22:11 +08:00
Optimizing scripts
This commit is contained in:
parent
036e00eff0
commit
753ba6f08f
@ -605,6 +605,7 @@ openim::util::stop_services_with_name() {
|
|||||||
# 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 name: $server_name"
|
echo "Stopping services with name: $server_name"
|
||||||
local pids=$(pgrep -f "$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 no process was found with the name, add it to the not_stopped list
|
||||||
if [[ -z $pids ]]; then
|
if [[ -z $pids ]]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user