6 tornado.options.define("debug", type=bool, default=False, help="Enable debug mode")
7 tornado.options.define("port", type=int, default=8001, help="Port to listen on")
10 from ipfire.web import Application
13 tornado.options.parse_command_line()
15 # Initialize application
16 app = Application("@configsdir@/@PACKAGE_NAME@.conf",
17 debug=tornado.options.options.debug)
18 app.listen(tornado.options.options.port, xheaders=True)
21 await asyncio.Event().wait()
23 # Wrap everything in an event loop