pyfarm.agent.entrypoints.utility module

Utility

Small objects and functions which facilitate operations on the main entry point class.

pyfarm.agent.entrypoints.utility.start_daemon_posix(log, chdir, uid, gid)[source]

Runs the agent process via a double fork. This basically a duplicate of Marcechal’s original code with some adjustments:

http://www.jejik.com/articles/2007/02/ a_simple_unix_linux_daemon_in_python/
Source files from his post are here:
http://www.jejik.com/files/examples/daemon.py http://www.jejik.com/files/examples/daemon3x.py