Re: Example of signaling and creating a python daemon

2005-09-25 Thread Diez B. Roggisch
Jon Monteleone wrote: > What I dont understand about daemonizing a python script is whether or not it > requires the > daemon creation, ie the signal handling and forking of the process, to be > part of the > daemon code or is this code in a separate program that acts like a wrapper to > turn a

Re: Example of signaling and creating a python daemon

2005-09-18 Thread Jon Monteleone
"David Pratt" <[EMAIL PROTECTED]> Cc: Sent: Friday, September 16, 2005 3:31 AM Subject: Re: Example of signaling and creating a python daemon > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list

Re: Example of signaling and creating a python daemon

2005-09-15 Thread McBooCzech
--snip-- > I have no experience daemonizing a script so this help would be much > appreciated. I have found a couple of scripts googling on creating a > deemon but not work in this way. > > Regards, > David Hi, maybe this two link can help: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe

Re: Example of signaling and creating a python daemon

2005-09-15 Thread David Pratt
Hi jepler! This is a nice example. I will study it so I can better see what each part is doing. I may have a couple of questions once I have done this because I have not yet daemonized a process and I want to be sure I understand before I attempt to run anything I create. Many thanks. David

Re: Example of signaling and creating a python daemon

2005-09-15 Thread jepler
Here's a program I use to control volume. Run one way, it waits for a Unix signal and adjusts the volume according to the signal received. Run another way, the PID of the daemon process is determined and a signal is sent according to a commandline argument. #!/usr/bin/env python import pyosd, os

Example of signaling and creating a python daemon

2005-09-15 Thread David Pratt
Hi. I am running a zope server. Zope runs 4 threads and I have a document processing method that can require minutes to run so I do not want to run out of threads. A solution to this is to run this process asynchronously. What I am hoping to do is send a signal to a python deamon to run a p