ok

Mini Shell

Direktori : /proc/thread-self/root/opt/imunify360/venv/lib64/python3.11/site-packages/im360/subsys/
Upload File :
Current File : //proc/thread-self/root/opt/imunify360/venv/lib64/python3.11/site-packages/im360/subsys/fail2ban.py

from defence360agent.utils import run


async def is_running():
    try:
        rc, *_ = await run(["fail2ban-client", "status"])
        return rc == 0
    except (FileNotFoundError, NotADirectoryError):
        return False

Zerion Mini Shell 1.0