mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-30 22:15:02 +00:00
perf: 添加监测 celery
This commit is contained in:
parent
84e60283b8
commit
a5419b49ee
7
utils/check_celery.sh
Normal file
7
utils/check_celery.sh
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user