重启uwsgi脚本备份

NAME="identifyImg_uwsgi.init"  
if [ ! -n "$NAME" ];then  
    echo "no arguments"  
    exit;  
fi  
  
echo $NAME  
ID=`ps -ef | grep "$NAME" | grep -v "$0" | grep -v "grep" | awk '{print $2}'`  
echo $ID  
echo "################################################"  
for id in $ID  
do  
kill -9 $id  
echo "kill $id"  
done  
echo  "################################################"  
uwsgi --ini /var/wx/identifyimg/identifyImg/identifyImg_uwsgi.init

 

posted @ 2018-05-02 15:31  MvloveYouForever  阅读(162)  评论(0编辑  收藏  举报