Commit f10e1967 authored by qa_quantgroup's avatar qa_quantgroup

kill -9

parent 35f45161
...@@ -77,7 +77,7 @@ cd $project_path/$project ...@@ -77,7 +77,7 @@ cd $project_path/$project
P_UUID=`ps -ef|grep ${project}.jar |grep -v 'grep'|awk '{print $2}'` P_UUID=`ps -ef|grep ${project}.jar |grep -v 'grep'|awk '{print $2}'`
if [ -n "${P_UUID}" ];then if [ -n "${P_UUID}" ];then
echo "Kill $project PPID=${P_UUID}" echo "Kill $project PPID=${P_UUID}"
kill ${P_UUID} kill -9 ${P_UUID}
sleep 2s sleep 2s
fi fi
......
...@@ -15,7 +15,7 @@ python_project_path=$project_path/$project${setup_path_temp/\.\//\/} ...@@ -15,7 +15,7 @@ python_project_path=$project_path/$project${setup_path_temp/\.\//\/}
P_UUID=`ps -ef|grep port=$port |grep -v 'grep'|awk '{print $2}'` P_UUID=`ps -ef|grep port=$port |grep -v 'grep'|awk '{print $2}'`
if [[ "${P_UUID}" != "" ]];then if [[ "${P_UUID}" != "" ]];then
echo "KILL $project PPID=${P_UUID}" echo "KILL $project PPID=${P_UUID}"
kill ${P_UUID} kill -9 ${P_UUID}
sleep 3 sleep 3
fi fi
mv $project_path/logs/${project}.log $project_path/logs/${project}.log.$time mv $project_path/logs/${project}.log $project_path/logs/${project}.log.$time
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment