mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-12-18 18:48:46 +00:00
fix serving stop (#8253)
This commit is contained in:
parent
4ee91319af
commit
6da00add07
@ -103,7 +103,9 @@ function func_serving(){
|
|||||||
last_status=${PIPESTATUS[0]}
|
last_status=${PIPESTATUS[0]}
|
||||||
eval "cat ${_save_log_path}"
|
eval "cat ${_save_log_path}"
|
||||||
status_check $last_status "${cpp_client_cmd}" "${status_log}" "${model_name}" "${_save_log_path}"
|
status_check $last_status "${cpp_client_cmd}" "${status_log}" "${model_name}" "${_save_log_path}"
|
||||||
ps ux | grep -i ${port_value} | awk '{print $2}' | xargs kill -s 9
|
#ps ux | grep -i ${port_value} | awk '{print $2}' | xargs kill -s 9
|
||||||
|
${python_list[0]} ${web_service_py} stop
|
||||||
|
sleep 5s
|
||||||
else
|
else
|
||||||
server_log_path="${LOG_PATH}/cpp_server_gpu.log"
|
server_log_path="${LOG_PATH}/cpp_server_gpu.log"
|
||||||
web_service_cpp_cmd="nohup ${python_list[0]} ${web_service_py} --model ${det_server_value} ${rec_server_value} ${op_key} ${op_value} ${port_key} ${port_value} ${gpu_key} ${gpu_id} > ${server_log_path} 2>&1 &"
|
web_service_cpp_cmd="nohup ${python_list[0]} ${web_service_py} --model ${det_server_value} ${rec_server_value} ${op_key} ${op_value} ${port_key} ${port_value} ${gpu_key} ${gpu_id} > ${server_log_path} 2>&1 &"
|
||||||
@ -115,7 +117,8 @@ function func_serving(){
|
|||||||
last_status=${PIPESTATUS[0]}
|
last_status=${PIPESTATUS[0]}
|
||||||
eval "cat ${_save_log_path}"
|
eval "cat ${_save_log_path}"
|
||||||
status_check $last_status "${cpp_client_cmd}" "${status_log}" "${model_name}" "${_save_log_path}"
|
status_check $last_status "${cpp_client_cmd}" "${status_log}" "${model_name}" "${_save_log_path}"
|
||||||
ps ux | grep -i ${port_value} | awk '{print $2}' | xargs kill -s 9
|
#ps ux | grep -i ${port_value} | awk '{print $2}' | xargs kill -s 9
|
||||||
|
${python_list[0]} ${web_service_py} stop
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user