def run(self, daemon=False):
if daemon:
daemon = cherrypy.process.plugins.Daemonizer(cherrypy.engine)
daemon.subscribe()
if self._cfg.pid_file:
pid = cherrypy.process.plugins.PIDFile(cherrypy.engine, self._cfg.pid_file)
pid.subscribe()
cherrypy.engine.start()
cherrypy.engine.block()
评论列表
文章目录