def main(): app = MainApplication() app.listen(options.port) MonitTask() tornado.ioloop.IOLoop.current().start()