mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 11:29:48 +08:00
41d37f9648
Former-commit-id: 898c2c8b0b2cfdc1b8664062aa0ea910a93566dd
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
|