예제 #1
0
파일: __init__.py 프로젝트: GLab/ToMaTo
def start():
    logging.openDefault(settings.settings.get_log_filename())
    global starttime
    rpcserver.start()
    starttime = time.time()
    if not os.environ.has_key("TOMATO_NO_TASKS"):
        scheduler.start()
    else:
        print >>sys.stderr, "Running without tasks"
    cache.init()  # this does not depend on anything (except the scheduler variable being initialized), and nothing depends on this. No need to hurry this.
    dump.init()
예제 #2
0
파일: __init__.py 프로젝트: plaljx/ProViNet
def start():
	logging.openDefault(config.LOG_FILE)
	db_migrate()
	auth.init()
	resources.init()
	global starttime
	bittorrent.startTracker(config.TRACKER_PORT, config.TEMPLATE_PATH)
	bittorrent.startClient(config.TEMPLATE_PATH)
	rpcserver.start()
	starttime = time.time()
	scheduler.start()
	dump.init()
	dumpmanager.init()# important: must be called after dump.init()
	cache.init()# this does not depend on anything (except the scheduler variable being initialized), and nothing depends on this. No need to hurry this.
예제 #3
0
def start():
    logging.openDefault(config.LOG_FILE)
    db_migrate()
    auth.init()
    resources.init()
    global starttime
    bittorrent.startTracker(config.TRACKER_PORT, config.TEMPLATE_PATH)
    bittorrent.startClient(config.TEMPLATE_PATH)
    rpcserver.start()
    starttime = time.time()
    scheduler.start()
    dump.init()
    dumpmanager.init()  # important: must be called after dump.init()
    cache.init(
    )  # this does not depend on anything (except the scheduler variable being initialized), and nothing depends on this. No need to hurry this.
예제 #4
0
def start():
    logging.openDefault(settings.settings.get_log_filename())
    if not os.environ.has_key("TOMATO_NO_MIGRATE"):
        db.migrate()
    else:
        print >> sys.stderr, "Skipping migrations"
    global starttime
    rpcserver.start()
    starttime = time.time()
    if not os.environ.has_key("TOMATO_NO_TASKS"):
        scheduler.start()
    else:
        print >> sys.stderr, "Running without tasks"
    dump.init()
    dumpmanager.start()
예제 #5
0
파일: __init__.py 프로젝트: GLab/ToMaTo
def start():
	logging.openDefault(settings.settings.get_log_filename())
	if not os.environ.has_key("TOMATO_NO_MIGRATE"):
		db.migrate()
	else:
		print >>sys.stderr, "Skipping migrations"
	global starttime
	rpcserver.start()
	starttime = time.time()
	if not os.environ.has_key("TOMATO_NO_TASKS"):
		scheduler.start()
	else:
		print >>sys.stderr, "Running without tasks"
	dump.init()
	dumpmanager.start()
예제 #6
0
파일: __init__.py 프로젝트: GLab/ToMaTo
def start():
	logging.openDefault(settings.settings.get_log_filename())
	if not os.environ.has_key("TOMATO_NO_MIGRATE"):
		db.migrate()
	else:
		print >>sys.stderr, "Skipping migrations"
	global starttime
	template_dir = settings.settings.get_template_dir()
	if not os.path.exists(template_dir):
		os.makedirs(template_dir)
	rpcserver.start()
	starttime = time.time()
	if not os.environ.has_key("TOMATO_NO_TASKS"):
		scheduler.start()
	else:
		print >>sys.stderr, "Running without tasks"
	dump.init()
	cache.init()# this does not depend on anything (except the scheduler variable being initialized), and nothing depends on this. No need to hurry this.
예제 #7
0
파일: __init__.py 프로젝트: dswd/ToMaTo
def start():
	logging.openDefault(config.LOG_FILE)
	if not os.environ.has_key("TOMATO_NO_MIGRATE"):
		db_migrate()
	else:
		print >>sys.stderr, "Skipping migrations"
	auth.init()
	global starttime
	bittorrent.startTracker(config.TRACKER_PORT, config.TEMPLATE_PATH)
	bittorrent.startClient(config.TEMPLATE_PATH)
	rpcserver.start()
	starttime = time.time()
	if not os.environ.has_key("TOMATO_NO_TASKS"):
		scheduler.start()
	else:
		print >>sys.stderr, "Running without tasks"
	dump.init()
	dumpmanager.init()# important: must be called after dump.init()
	cache.init()# this does not depend on anything (except the scheduler variable being initialized), and nothing depends on this. No need to hurry this.
예제 #8
0
def start():
	logging.openDefault(config.LOG_FILE)
	if not os.environ.has_key("TOMATO_NO_MIGRATE"):
		db_migrate()
	else:
		print >>sys.stderr, "Skipping migrations"
	auth.init()
	global starttime
	bittorrent.startTracker(config.TRACKER_PORT, config.TEMPLATE_PATH)
	bittorrent.startClient(config.TEMPLATE_PATH)
	rpcserver.start()
	starttime = time.time()
	if not os.environ.has_key("TOMATO_NO_TASKS"):
		scheduler.start()
	else:
		print >>sys.stderr, "Running without tasks"
	dump.init()
	dumpmanager.init()# important: must be called after dump.init()
	cache.init()# this does not depend on anything (except the scheduler variable being initialized), and nothing depends on this. No need to hurry this.
예제 #9
0
파일: __init__.py 프로젝트: plaljx/ToMaTo
def start():
    logging.openDefault(settings.settings.get_log_filename())
    if not os.environ.has_key("TOMATO_NO_MIGRATE"):
        db.migrate()
    else:
        print >> sys.stderr, "Skipping migrations"
    global starttime
    template_dir = settings.settings.get_template_dir()
    if not os.path.exists(template_dir):
        os.makedirs(template_dir)
    rpcserver.start()
    starttime = time.time()
    if not os.environ.has_key("TOMATO_NO_TASKS"):
        scheduler.start()
    else:
        print >> sys.stderr, "Running without tasks"
    dump.init()
    cache.init(
    )  # this does not depend on anything (except the scheduler variable being initialized), and nothing depends on this. No need to hurry this.