Browse Source

update 西瓜,快手进程检测

lierqiang 2 years ago
parent
commit
9f57b606c2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/process.sh

+ 2 - 2
main/process.sh

@@ -95,13 +95,13 @@ fi
 
 # 西瓜定向爬虫策略
 echo "$(date "+%Y-%m-%d %H:%M:%S") 正在监测 西瓜定向爬虫策略 进程状态" >> ${log_path}
-ps -ef | grep "run_kuaishou_follow.py" | grep -v "grep"
+ps -ef | grep "run_xigua_follow.py" | grep -v "grep"
 if [ "$?" -eq 1 ];then
   echo "$(date "+%Y-%m-%d_%H:%M:%S") 异常停止,正在重启!" >> ${log_path}
   if [ ${env} = "dev" ];then
     cd ${piaoquan_crawler_dir} && sh main/scheduling_main.sh ./xigua/xigua_main/run_xigua_follow.py --log_type="follow" --crawler="xigua" --env="dev" xigua/follow.log
   else
-    cd ${piaoquan_crawler_dir} && /usr/bin/sh  ./main/main.sh ./xigua/xigua_main/run_xigua_follow.py --log_type="follow" --crawler="xigua" --strategy="定向爬虫策略" --oss_endpoint="inner" --env="prod" --machine="aliyun" xigua/follow.log
+    cd ${piaoquan_crawler_dir} && /usr/bin/sh ./main/main.sh ./xigua/xigua_main/run_xigua_follow.py --log_type="follow" --crawler="xigua" --strategy="定向爬虫策略" --oss_endpoint="inner" --env="prod" --machine="aliyun" xigua/follow.log
   fi
   echo "$(date "+%Y-%m-%d %H:%M:%S") 重启完成!\n" >> ${log_path}
 else