Hi all,

To start off I would like to use a global variable to store a simple
counting object (integers). The problem is keeping track of it because
when the server is shutdown it will disappear. I would like to on
server shutdown write this data to a database and then on server
startup read it back to the global variable.

Being a small counter it won't really grow much if at all but will get
a lot of reads and writes upon it. Due to the IO requirement on it
having a constant database update each time it changes would be slow.

So my main question is. Can paster run a python script(py file with
class) on server startup (in production mode) and then on server
shutdown run the script again. If so, how? When I shutdown the server
with Ctrl-C it simply justs stops the threads.

Regards
Pydon

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
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