>
> On Mon, 2008-01-28 at 16:23 -0500, Chris AtLee wrote:
>>
>> This kind of works...The problem so far is that when the application
>> is run under paste with the --reload option, the child
>> avahi-publish-service processes don't get killed off when the
>> application is shutdown.  When paster restarts the application, the
>> old avahi process is re-parented to the init process.  The same
>> problem occurs when running with --daemon.
>
> Have you tried using the Avahi Python bindings?  I'd expect that to  
> work
> far better than opening a subprocess.
>
> Regards,
> Cliff
>
>
>> Is there a way to get notified when your application is about to be
>> shut down?  Paste looks like it just sends SIGTERM to the process  
>> when
>> it detects a modified file, but maybe I'm missing something.
>>

If Cliff's suggestion doesn't work -- in general, the way to get a  
callback when python quits is via the atexit module.

--
Philip Jenvey



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to