mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 21:09:06 +08:00
17 lines
258 B
Bash
17 lines
258 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
function kill_progress()
|
||
|
{
|
||
|
kill -s SIGUSR2 $(pgrep $1)
|
||
|
|
||
|
sleep 2
|
||
|
}
|
||
|
|
||
|
STATUS=$(kill_progress "vecwise_server" )
|
||
|
|
||
|
if [[ ${STATUS} == "false" ]];then
|
||
|
echo "vecwise_server closed abnormally!"
|
||
|
else
|
||
|
echo "vecwise_server closed successfully!"
|
||
|
fi
|