It is documented but without a proper example I found it very hard to find out how to daemonize a CherryPy server. After some trial and error it proved to be not so hard at all.
The CherryPy documentation is a little haphazard at times and although the Daemonizer plugin is documented I found it a bit difficult to understand without any examples. There is a bit more available now in the new documentation but that is quite hidden so it never hurts to show an example:
- cherrypy.process.plugins.Daemonizer(cherrypy.engine).subscribe()
- ...
- ...
- cherrypy.quickstart(Root(),config={
- '/':
- { 'log.access_file' : os.path.join(current_dir,"access.log"),
- 'log.screen': False,
- 'tools.sessions.on': True
- }})