def run(self): self.logger.info("daemon running") actions = Actions(self.logger) try: actions.createSessionBus() actions.createManager() actions.wireEventHandlers() actions.openManager() # MAIN LOOP # --------- while True: #self.logger.info("start loop") try: signal.pause() #time.sleep(0.1) #sys.stdin.read() except Exception,e: exc=str(e) self.logger.error("error_untrapped", exc=exc) #self.logger.info("tail loop") except Exception,e: exc=str(e) self.logger.error("error_untrapped", exc=exc)