Python program as daemon?

J

James Harris

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.

Also, on Windows, you can get good results using srvany

http://support.microsoft.com/kb/137890

I've set this up to run Pyhton for a couple of scripts.
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top