mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-05 05:18:52 +08:00
d031bb9e26
Former-commit-id: 3fcd7e5e6d2a8d147f09aa455c4a3f3eab20a24a
17 lines
255 B
Bash
Executable File
17 lines
255 B
Bash
Executable File
#!/bin/bash
|
|
|
|
function kill_progress()
|
|
{
|
|
kill -s SIGUSR2 $(pgrep $1)
|
|
|
|
sleep 2
|
|
}
|
|
|
|
STATUS=$(kill_progress "milvus_server" )
|
|
|
|
if [[ ${STATUS} == "false" ]];then
|
|
echo "Milvus server closed abnormally!"
|
|
else
|
|
echo "Milvus server closed successfully!"
|
|
fi
|