I have an integration where the following happens:

* a pyramid application may be running, or not, on port 7201
* a background process may spin up a variant of the pyramid application on 
port 7202
* nginx has a location block that is configured to look for a semaphore 
file, if found it proxies to the application on 7201; otherwise it proxies 
to 7202.

pserve no longer has a pid file, so I can't use that as a semaphore.

i can use events to create the file, but it doesn't seem like I can hook 
removing the file into anything.  there are no applicable events, and there 
is no "finally" block on the pserve run commands.

has anyone been able to manage something like this entirely with pserve?  
i'd like to dummy-proof this integration, but it doesn't seem like I can 
figure out a way to reliably remove the semaphore file on a pserve/waitress 
shutdown.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/pylons-discuss/33cadfc4-3e9b-4a72-92d9-560f250d3e55n%40googlegroups.com.

Reply via email to