The freezer.lib.pep3143daemon.pidfile Module

The freezer.lib.pep3143daemon.pidfile Module

Simple PidFile Module for a pep3143 daemon implementation.

class freezer.lib.pep3143daemon.pidfile.PidFile(pidfile)

Bases: object

PidFile implementation for PEP 3143 Daemon.

This Class can also be used with pythons ‘with’ statement.

Parameters:pidfile (str) – filename to be used as pidfile, including path
acquire()

Acquire the pidfile.

Create the pidfile, lock it, write the pid into it and register the release with atexit.

Returns:None
Raise:SystemExit
release()

Release the pidfile.

Close and delete the Pidfile.

Returns:None
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

freezer 6.0.1.dev5