milvus/cpp/stop_server.sh

17 lines
255 B
Bash
Raw Normal View History

#!/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