mirror of https://github.com/jumpserver/jumpserver
parent
c1579f5fe4
commit
628012a7ee
@ -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
|
||||
|
Loading…
Reference in new issue