From a5419b49eecbcfb3fc4d18b431bbaed8cc6461af Mon Sep 17 00:00:00 2001 From: ibuler Date: Fri, 13 Aug 2021 11:23:19 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=B7=BB=E5=8A=A0=E7=9B=91=E6=B5=8B=20?= =?UTF-8?q?celery?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/check_celery.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 utils/check_celery.sh diff --git a/utils/check_celery.sh b/utils/check_celery.sh new file mode 100644 index 000000000..dce8edb45 --- /dev/null +++ b/utils/check_celery.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +if [[ "$(ps axu | grep 'celery' | grep -v 'grep' | grep -cv 'defunct')" == "5" ]];then + exit 0 +else + exit 1 +fi \ No newline at end of file