Пример #1
0
def start_server_process():
    """
    Starts the server in the forked process.
    :return: None
    """
    from ava.core.agent import start_agent
    start_agent()
Пример #2
0
def start_server_process():
    """
    Starts the server in the forked process.
    :return: None
    """
    from ava.core.agent import start_agent
    start_agent()
Пример #3
0
def launch(inbox, outbox):
    app_dir = get_app_dir()
    _logger.info("App dir: %s" % app_dir)

    if not os.path.exists(app_dir):
        init_app_dir(app_dir)

    if not os.path.isdir(app_dir):
        _logger.error("Invalid app folder: %s" % app_dir)
        sys.exit(-1)

    start_agent(inbox, outbox)
Пример #4
0
def launch(inbox, outbox):
    app_dir = get_app_dir()
    _logger.info("App dir: %s" % app_dir)

    if not os.path.exists(app_dir):
        init_app_dir(app_dir)

    if not os.path.isdir(app_dir):
        _logger.error("Invalid app folder: %s" % app_dir)
        sys.exit(-1)

    start_agent(inbox, outbox)
Пример #5
0
def run(ctx):
    """ Run the agent

    """
    from ava.core.agent import start_agent
    if ctx.obj['verbosity'] > 1:
        logger.debug("Starting the shell...")

    start_agent()

    if ctx.obj['verbosity'] > 1:
        logger.debug("Shell stopped.")
Пример #6
0
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals

from gevent import monkey
monkey.patch_all()

import logging

logging.basicConfig(level=logging.DEBUG)

# prevent no handler warning
try:
    from logging import NullHandler
except ImportError:
    class NullHandler(logging.Handler):
        def emit(self, record):
            pass


logger = logging.getLogger("ava")

from ava.core.agent import start_agent


if __name__ == '__main__':
    start_agent()