Questions regarding the daemon module.

D

David Lambert

I was looking for a simple way to daemonize a Python process, and found:

http://www.python.org/dev/peps/pep-3143/

I used easy_install to add this package (I thought), but when I
attempted to use the example in the above link, I got the error:


AttributeError: 'module' object has no attribute 'DaemonContext'

To my surprise when looking at the module that was installed, I found
something completely different to what was in the documentation:
['__builtins__', '__doc__', '__file__', '__name__', '__package__',
'basic_daemonize', 'checkPID', 'daemonize', 'errno', 'os', 'sys',
'writePID']

Further experimentation with this module yielded a working daemon, but I
am concerned regarding its parentage and lack of documentation. Could
someone explain these discrepancies?


Best regards,

Dave.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top