Beispiel #1
0
def setup_all():
    setup_local()
    setup_logger()

    try:
        setup_app()
        setup_signal_handler()
        setup_server()
        setup_mongo()
        setup_temp_path()

        if settings.conf.ssl:
            setup_server_cert()

        setup_public_ip()
        setup_host()
        setup_poolers()
        setup_host_fix()
        setup_runners()
        setup_handlers()
        setup_check()
    except:
        from pritunl import logger
        logger.exception('Pritunl setup failed', 'setup')
        raise
Beispiel #2
0
def setup_all():
    from pritunl import logger

    setup_local()
    setup_logger()

    try:
        setup_temp_path()
        setup_app()
        setup_signal_handler()
        setup_server()
        setup_mongo()
        setup_cache()
        setup_public_ip()
        setup_host()
        setup_server_listeners()
        setup_dns()
        setup_monitoring()
        setup_poolers()
        setup_host_fix()
        setup_subscription()
        setup_runners()
        setup_handlers()
        setup_check()

        soft, hard = resource.getrlimit(resource.RLIMIT_NOFILE)
        if soft < 25000 or hard < 25000:
            logger.warning(
                'Open file ulimit is lower then recommended',
                'setup',
            )
    except:
        logger.exception('Pritunl setup failed', 'setup')
        raise
Beispiel #3
0
def setup_all():
    from pritunl import logger

    setup_local()
    setup_logger()

    try:
        setup_temp_path()
        setup_app()
        setup_signal_handler()
        setup_server()
        setup_mongo()
        setup_public_ip()
        setup_host()
        setup_server_listeners()
        setup_dns()
        setup_monitoring()
        setup_poolers()
        setup_host_fix()
        setup_subscription()
        setup_runners()
        setup_handlers()
        setup_check()

        soft, hard = resource.getrlimit(resource.RLIMIT_NOFILE)
        if soft < 25000 or hard < 25000:
            logger.warning(
                'Open file ulimit is lower then recommended', 'setup')
    except:
        logger.exception('Pritunl setup failed', 'setup')
        raise
Beispiel #4
0
def setup_all():
    setup_local()
    setup_logger()

    try:
        setup_temp_path()
        setup_app()
        setup_signal_handler()
        setup_server()
        setup_mongo()

        if settings.conf.ssl:
            setup_server_cert()

        setup_public_ip()
        setup_host()
        setup_poolers()
        setup_host_fix()
        setup_runners()
        setup_handlers()
        setup_check()
    except:
        from pritunl import logger
        logger.exception('Pritunl setup failed', 'setup')
        raise
Beispiel #5
0
def setup_all():
    setup_local()
    setup_logger()

    try:
        setup_temp_path()
        setup_app()
        setup_signal_handler()
        setup_server()
        setup_mongo()
        setup_public_ip()
        setup_host()
        setup_server_listeners()
        setup_dns()
        setup_monitoring()
        setup_poolers()
        setup_host_fix()
        setup_subscription()
        setup_runners()
        setup_handlers()
        setup_check()
    except:
        from pritunl import logger
        logger.exception('Pritunl setup failed', 'setup')
        raise
Beispiel #6
0
def setup_loc():
    setup_local()
    setup_app()

    try:
        setup_logger()
    except:
        from pritunl import logger
        logger.exception('Pritunl setup failed', 'setup')
        raise
Beispiel #7
0
def setup_loc():
    setup_local()
    setup_app()

    try:
        setup_logger()
    except:
        from pritunl import logger
        logger.exception('Pritunl setup failed', 'setup')
        raise
Beispiel #8
0
def setup_db():
    setup_local()
    setup_app()

    try:
        if settings.conf.ssl:
            setup_server_cert()

        setup_logger()
        setup_mongo()
    except:
        from pritunl import logger
        logger.exception('Pritunl setup failed', 'setup')
        raise
Beispiel #9
0
def setup_db():
    setup_local()
    setup_app()

    try:
        if settings.conf.ssl:
            setup_server_cert()

        setup_logger()
        setup_mongo()
    except:
        from pritunl import logger
        logger.exception('Pritunl setup failed', 'setup')
        raise
Beispiel #10
0
def setup_all():
    setup_local()
    setup_clear_temp()
    setup_app()
    setup_logger()
    setup_mongo()
    setup_temp_path()
    setup_public_ip()
    setup_poolers()
    setup_host()
    setup_runners()
    setup_handlers()

    if settings.conf.ssl:
        setup_server_cert()
Beispiel #11
0
def setup_all():
    setup_local()
    setup_clear_temp()
    setup_app()
    setup_logger()
    setup_mongo()
    setup_temp_path()
    setup_public_ip()
    setup_poolers()
    setup_host()
    setup_runners()
    setup_handlers()

    if settings.conf.ssl:
        setup_server_cert()
Beispiel #12
0
def setup_all():
    setup_local()
    setup_clear_temp()
    setup_app()
    setup_logger()
    setup_signal_handler()

    if not settings.conf.mongodb_uri:
        from pritunl import dbconf
        dbconf.run_server()

    setup_mongo()
    setup_temp_path()
    setup_public_ip()
    setup_poolers()
    setup_host()
    setup_runners()
    setup_handlers()

    if settings.conf.ssl:
        setup_server_cert()
Beispiel #13
0
def setup_all():
    setup_local()
    setup_clear_temp()
    setup_app()
    setup_logger()
    setup_signal_handler()

    if not settings.conf.mongodb_uri:
        from pritunl import dbconf
        dbconf.run_server()

    setup_mongo()
    setup_temp_path()
    setup_public_ip()
    setup_poolers()
    setup_host()
    setup_runners()
    setup_handlers()

    if settings.conf.ssl:
        setup_server_cert()
Beispiel #14
0
def setup_db():
    setup_local()
    setup_clear_temp()
    setup_app()
    setup_logger()
    setup_mongo()
Beispiel #15
0
def setup_db():
    setup_local()
    setup_clear_temp()
    setup_app()
    setup_logger()
    setup_mongo()