PID files

The PIDFile Engine Plugin is pretty straightforward: it writes the process id to a file on start, and deletes the file on exit. You must provide a ‘pidfile’ argument, preferably an absolute path:

PIDFile(cherrypy.engine, '/var/run/myapp.pid').subscribe()

Classes

class cherrypy.process.plugins.PIDFile(bus, pidfile)

Bases: cherrypy.process.plugins.SimplePlugin

Maintain a PID file via a WSPBus.