def start_server(): logging.info("Starting stoq server") stoq_server = StoqServer() reactor.callWhenRunning(stoq_server.start) reactor.addSystemEventTrigger('before', 'shutdown', stoq_server.stop)
def start_server(): _setup_signal_termination() logger.info("Starting stoq server") stoq_server = StoqServer() stoq_server.run()