From d97c44ef99b103aca13f62821cdb4291b78967c0 Mon Sep 17 00:00:00 2001 From: Xinwei Xiong <3293172751NSS@gmail.com> Date: Wed, 9 Aug 2023 09:41:04 +0800 Subject: [PATCH] Update stop_all.sh (#822) --- scripts/stop_all.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/stop_all.sh b/scripts/stop_all.sh index 772e68d15..8bd5aaf34 100755 --- a/scripts/stop_all.sh +++ b/scripts/stop_all.sh @@ -1,5 +1,4 @@ #!/usr/bin/env bash - # Copyright © 2023 OpenIM. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -24,12 +23,13 @@ source $OPENIM_ROOT/scripts/path_info.sh bin_dir="$BIN_DIR" logs_dir="$OPENIM_ROOT/logs" +sdk_db_dir="$OPENIM_ROOT/sdk/db/" cd "$SCRIPTS_ROOT" for i in ${service_names[*]}; do #Check whether the service exists - name="ps |grep -w $i |grep -v grep" + name="ps -aux |grep -w $i |grep -v grep" count="${name}| wc -l" if [ $(eval ${count}) -gt 0 ]; then pid="${name}| awk '{print \$2}'"