コード例 #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
ファイル: __init__.py プロジェクト: tonyduncan/ToMaTo
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
ファイル: __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.
コード例 #5
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.
コード例 #6
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.
コード例 #7
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.