def run(self, status): try: log.info("Xend Daemon started") xc = xen.lowlevel.xc.xc() xinfo = xc.xeninfo() log.info("Xend changeset: %s.", xinfo['xen_changeset']) del xc try: from xen import VERSION log.info("Xend version: %s", VERSION) except ImportError: log.info("Xend version: Unknown.") relocate.listenRelocation() servers = SrvServer.create() servers.start(status) del servers except Exception, ex: print >> sys.stderr, 'Exception starting xend:', ex if XEND_DEBUG: traceback.print_exc() log.exception("Exception starting xend (%s)" % ex) if status: status.write('1') status.close() sys.exit(1)
def run(self, status): try: log.info("Xend Daemon started") xc = xen.lowlevel.xc.xc() xinfo = xc.xeninfo() log.info("Xend changeset: %s.", xinfo['xen_changeset']) del xc try: from xen import VERSION log.info("Xend version: %s", VERSION) except ImportError: log.info("Xend version: Unknown.") relocate.listenRelocation() servers = SrvServer.create() servers.start(status) del servers except Exception, ex: print >>sys.stderr, 'Exception starting xend:', ex if XEND_DEBUG: traceback.print_exc() log.exception("Exception starting xend (%s)" % ex) if status: status.write('1') status.close() sys.exit(1)
def run(self, status): try: log.info("Xend Daemon started") #xc = xen.lowlevel.xc.xc() #xinfo = xc.xeninfo() #log.info("Xend changeset: %s.", xinfo['xen_changeset']) #del xc relocate.listenRelocation() servers = SrvServer.create() servers.start(status) except Exception, ex: print >>sys.stderr, 'Exception starting xend:', ex if XEND_DEBUG: traceback.print_exc() log.exception("Exception starting xend (%s)" % ex) if status: status.write('1') status.close() sys.exit(1)