def command(self):
setproctitle.setproctitle(
"{:s}: master process '{:s}'".format(
self.context.config.name, " ".join(sys.argv)
))
# For each interface create workers
for tornado_app in get_tornado_apps(self.context, debug=False):
self.init_workers(tornado_app)
# Run workers
try:
start_workers(self.workers, max_restarts=100)
except KeyboardInterrupt:
pass
评论列表
文章目录