perf: 修改健康监测

pull/6705/head
ibuler 2021-08-20 14:31:52 +08:00 committed by Jiangjie.Bai
parent c1579f5fe4
commit 628012a7ee
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
if [[ "$(ps axu | grep 'celery' | grep -v 'grep' | grep -cv 'defunct')" == "5" ]];then
if [[ "$(ps axu | grep 'celery' | grep -v 'grep' | grep -cv 'defunct')" -gt "2" ]];then
exit 0
else
exit 1