Improve the stop command (#19981)

Signed-off-by: SimFG <bang.fu@zilliz.com>

Signed-off-by: SimFG <bang.fu@zilliz.com>
This commit is contained in:
SimFG 2022-10-21 18:45:30 +08:00 committed by GitHub
parent 05bbb12d30
commit 1b7968557c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,7 @@
# limitations under the License.
echo "Stopping milvus..."
kill -9 $(ps -e | grep milvus | awk '{print $1}')
PROCESS=$(ps -e | grep milvus | grep -v grep | awk '{print $1}')
kill -9 $PROCESS
echo "Milvus stopped"