pidfile

Module Contents

Classes

Pidfile(self,fname)
class Pidfile(fname)

Manage a PID file. If a specific name is provided it and ‘”%s.oldpid” % name’ will be used. Otherwise we create a temp file using os.mkstemp.

__init__(fname)
create(pid)
rename(path)

delete pidfile

validate()

Validate pidfile and make it stale if needed