Beispiel #1
0
def setup_all():
    from pritunl import logger

    setup_local()
    setup_logger()

    try:
        setup_clean()
        setup_temp_path()
        setup_signal_handler()
        setup_vault()
        setup_server()
        setup_mongo()
        setup_settings()
        setup_boto_conf()
        setup_public_ip()
        setup_host()
        setup_cache()
        setup_server_listeners()
        setup_dns()
        setup_monitoring()
        setup_poolers()
        setup_host_fix()
        setup_subscription()
        setup_ndppd()
        setup_runners()
        setup_handlers()
        setup_check()
        setup_plugins()

        setup_demo()

        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')
        set_global_interrupt()
        raise
Beispiel #2
0
def setup_all():
    from pritunl import logger

    setup_local()
    setup_logger()

    try:
        setup_clean()
        setup_temp_path()
        setup_signal_handler()
        setup_server()
        setup_mongo()
        setup_settings()
        setup_boto_conf()
        setup_public_ip()
        setup_host()
        setup_cache()
        setup_server_listeners()
        setup_dns()
        setup_monitoring()
        setup_poolers()
        setup_host_fix()
        setup_subscription()
        setup_ndppd()
        setup_runners()
        setup_handlers()
        setup_check()
        setup_plugins()

        setup_demo()

        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')
        set_global_interrupt()
        raise