J
Johny
Is it possible to run a Python program as daemon?
Thanks
Thanks
Johny said:Is it possible to run a Python program as daemon?
Johny said:Is it possible to run a Python program as daemon?
Is it possible to run a Python program as daemon?
Thanks
Basically it forks twice ...
Lawrence said:In message
What's the advantage of forking twice over forking once and calling setsid?
Here is an example on how to run a Python script as a Unix daemon:
http://svn.plone.org/svn/collective/bda.daemon/trunk/bda/daemon/daemo...
Basically it forks twice and redirects open file descriptors to /dev/
null.
On Windows, 'daemons' are called services. You can write Windows
services in Python using the Pywin32 extension. See Mark Hammond's
book for an explanation.
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.