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()
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.
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.
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.
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.
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.