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.
On 25 Jul, 20:05, sturlamolden <sturlamol...@y ahoo.nowrote:
On Jul 25, 8:37 pm, Johny <pyt...@hope.cz wrote:
>
Is it possible to run a Python program as daemon?
Thanks
>
Here is an example on how to run a Python script as a Unix daemon:
> http://svn.plone.org/svn/collective/...a/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.
Also, on Windows, you can get good results using srvany
Comment