Exemple #1
0
def start_console_mode():
    try:
        signal.signal(signal.SIGINT, snoip_daemon.stop_all)
        snoip_daemon.run_all()
        serve(config.Listeners)
    # why there is no signal on windows? 
    except exceptions.KeyboardInterrupt:
        snoip_daemon.stop_all()    
Exemple #2
0
 def run(self):
     self.run_all()
     serve(config.Listeners)