def start_bridge(config_path): config = DeploymentConfig(config_path) dispatcher = RPCDispatcher(config, register_with_bridge=False) try: dispatcher.start() except KeyboardInterrupt: dispatcher.stop() print "Exiting..."
def start_service(config_path): config = DeploymentConfig(config_path) dispatcher = RPCDispatcher(config) try: dispatcher.start() except KeyboardInterrupt: dispatcher.stop() print "Exiting..."
def serve_qpid(config_path, register_with_bridge=False, is_bridge_server=False): """ Code for starting the QPID RPC service. """ config = DeploymentConfig(config_path) dispatcher = RPCDispatcher(config, register_with_bridge, is_bridge_server=is_bridge_server) try: dispatcher.start() except KeyboardInterrupt: dispatcher.stop() print "Exiting..."
def serve_qpid(config_path): """ Code for starting the QPID RPC service. """ config = DeploymentConfig(config_path) server_file = open("/etc/sysconfig/virt-factory/server","r") server_host = server_file.read() server_file.close() dispatcher = RPCDispatcher(config, server_host=server_host, register_with_bridge=False, is_bridge_server=False) try: dispatcher.start() except KeyboardInterrupt: dispatcher.stop() print "Exiting..."