mirror of https://github.com/jumpserver/jumpserver
parent
6ff104c100
commit
fd323c20e1
@ -1,7 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [[ "$(ps axu | grep 'celery' | grep -v 'grep' | grep -cv 'defunct')" -gt "2" ]];then
|
set -e
|
||||||
exit 0
|
|
||||||
else
|
test -e /tmp/worker_ready_ansible
|
||||||
exit 1
|
test -e /tmp/worker_ready_celery
|
||||||
fi
|
test -e /tmp/worker_heartbeat_ansible && test $(($(date +%s) - $(stat -c %Y /tmp/worker_heartbeat_ansible))) -lt 10
|
||||||
|
test -e /tmp/worker_heartbeat_celery && test $(($(date +%s) - $(stat -c %Y /tmp/worker_heartbeat_celery))) -lt 10
|
||||||
|
Loading…
Reference in new issue