mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-05-29 18:14:25 +00:00
7 lines
126 B
Bash
7 lines
126 B
Bash
#!/bin/bash
|
|
|
|
if [[ "$(ps axu | grep 'celery' | grep -v 'grep' | grep -cv 'defunct')" -gt "2" ]];then
|
|
exit 0
|
|
else
|
|
exit 1
|
|
fi |