If you *must* have TG start/stop the application, you're probably going to want to look in the myapp.config.middleware module. Personally, I would use an external option, such as supervisord, but you *can* add such things to the middleware to start/stop.
On Mon, Nov 7, 2011 at 2:36 PM, Sean DiZazzo <[email protected]> wrote: > On Nov 5, 7:51 pm, pkraus <[email protected]> wrote: > > I have a web application (warehouse management software) that uses > > beanstalkd to off load some background processing to keep the site > > "snappy". Where/how is the best place to add the startup of the process > > that watches the queue to the turbogears startup? Is there something > > already in the framework for handling these kinds of situations > (secondary > > python programs that "do stuff" that are integral to the main > application) > > to make sure the process is always running. > > I use supervisor (http://supervisord.org/) to start/stop my Turbogears > apps as well as any daemons. You just need to make sure beanstalkd > doesn't fork. It is a very nice setup with lots of possibilities. > > ~Sean > > -- > You received this message because you are subscribed to the Google Groups > "TurboGears" 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/turbogears?hl=en. > > -- You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en.

