logging.info("Starting up socket.io server (chat feed)...") sio_server = socketio_server.SocketIOServer( (config.SOCKETIO_CHAT_HOST, config.SOCKETIO_CHAT_PORT), siofeeds.SocketIOChatFeedServer(mongo_db), resource="socket.io", policy_server=False) sio_server.start() #start the socket.io server greenlets logging.info("Starting up counterpartyd block feed poller...") gevent.spawn(blockfeed.process_cpd_blockfeed, zmq_publisher_eventfeed) #start up event timers that don't depend on the feed being fully caught up logging.debug("Starting event timer: check_blockchain_service") gevent.spawn(events.check_blockchain_service) logging.debug("Starting event timer: expire_stale_prefs") gevent.spawn(events.expire_stale_prefs) logging.debug("Starting event timer: expire_stale_btc_open_order_records") gevent.spawn(events.expire_stale_btc_open_order_records) logging.debug("Starting event timer: generate_wallet_stats") gevent.spawn(events.generate_wallet_stats) logging.info("Starting up RPC API handler...") api.serve_api(mongo_db, redis_client) #print some user friendly startup warnings as need be if not config.SUPPORT_EMAIL: logging.warn("Support email setting not set: To enable, please specify an email for the 'support-email' setting in your counterblockd.conf") # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
logging.info("Starting up socket.io server (chat feed)...") sio_server = socketio_server.SocketIOServer( (config.SOCKETIO_CHAT_HOST, config.SOCKETIO_CHAT_PORT), siofeeds.SocketIOChatFeedServer(mongo_db), resource="socket.io", policy_server=False) sio_server.start() #start the socket.io server greenlets logging.info("Starting up csfrd block feed poller...") gevent.spawn(blockfeed.process_cpd_blockfeed, zmq_publisher_eventfeed) #start up event timers that don't depend on the feed being fully caught up logging.debug("Starting event timer: check_blockchain_service") gevent.spawn(events.check_blockchain_service) logging.debug("Starting event timer: expire_stale_prefs") gevent.spawn(events.expire_stale_prefs) logging.debug("Starting event timer: expire_stale_btc_open_order_records") gevent.spawn(events.expire_stale_btc_open_order_records) logging.debug("Starting event timer: generate_wallet_stats") gevent.spawn(events.generate_wallet_stats) logging.info("Starting up RPC API handler...") api.serve_api(mongo_db, redis_client) #print some user friendly startup warnings as need be if not config.SUPPORT_EMAIL: logging.warn("Support email setting not set: To enable, please specify an email for the 'support-email' setting in your csfrblockd.conf") # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4