Пример #1
0
def start():
	logging.openDefault(config.LOG_FILE)
	dump.init()
	db_migrate()
	firewall.add_all_networks(network.getAll())
	bittorrent.startClient(config.TEMPLATE_DIR, config.BITTORRENT_PORT_RANGE[0], config.BITTORRENT_PORT_RANGE[1])
	fileserver.start()
	rpcserver.start()
	scheduler.start()
Пример #2
0
def start():
    logging.openDefault(config.LOG_FILE)
    dump.init()
    db_migrate()
    firewall.add_all_networks(network.getAll())
    bittorrent.startClient(config.TEMPLATE_DIR)
    fileserver.start()
    rpcserver.start()
    scheduler.start()
Пример #3
0
def start():
    logging.openDefault(config.LOG_FILE)
    dump.init()
    db_migrate()
    firewall.add_all_networks(network.getAll())
    global httpd_pid
    httpd_pid = busybox.httpd_start(config.TEMPLATE_DIR, config.HTTPD_PORT)
    fileserver.start()
    rpcserver.start()
    scheduler.start()
Пример #4
0
def start():
	logging.openDefault(config.LOG_FILE)
	dump.init()
	db_migrate()
	firewall.add_all_networks(network.getAll())
	global httpd_pid
	httpd_pid = busybox.httpd_start(config.TEMPLATE_DIR, config.HTTPD_PORT)
	fileserver.start()
	rpcserver.start()
	scheduler.start()
Пример #5
0
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()
Пример #6
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.
Пример #7
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.
Пример #8
0
def start():
	logging.openDefault(config.LOG_FILE)
	db_migrate()
	auth.init()
	resources.init()
	host.task.start() #@UndefinedVariable
	elements.kvmqm.rextfv_syncer.start() #@UndefinedVariable
	elements.openvz.rextfv_syncer.start() #@UndefinedVariable
	accounting.task.start() #@UndefinedVariable
	auth.task.start() #@UndefinedVariable
	link.task.start() #@UndefinedVariable
	global starttime
	bittorrent.startTracker(config.TRACKER_PORT, config.TEMPLATE_PATH)
	bittorrent.startClient(config.TEMPLATE_PATH)
	bittorrent.task.start() #@UndefinedVariable
	rpcserver.start()
	starttime = time.time()
Пример #9
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
	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.
Пример #10
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.
Пример #11
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.
Пример #12
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
    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.
Пример #13
0
def reload_(*args):
    print >> sys.stderr, "Reloading..."
    logging.closeDefault()
    reload(config)
    logging.openDefault(config.LOG_FILE)
Пример #14
0
def reload_(*args):
	print >>sys.stderr, "Reloading..."
	logging.closeDefault()
	reload(config)
	logging.openDefault(config.LOG_FILE)
Пример #15
0
def reload_(*args):
    print >>sys.stderr, "Reloading..."
    logging.closeDefault()
    settings.settings.reload()
    # fixme: all cached methods should be invalidated here
    logging.openDefault(settings.settings.get_log_filename())
Пример #16
0
def reload_(*args):
    print >> sys.stderr, "Reloading..."
    logging.closeDefault()
    settings.settings.reload()
    # fixme: all cached methods should be invalidated here
    logging.openDefault(settings.settings.get_log_filename())