freezer.lib.pep3143daemon.pidfile
Module¶Simple PidFile Module for a pep3143 daemon implementation.
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 |
---|
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.