It sounds like an old recipe that was posted on the old Trac Wiki (I think).

The idea was to set it up in Apache (or other front end server) so that it
would run whenever a 502 Bad Proxy status code was returned to the user.
The CGI program would then attempt to restart the TG app using
start-project.py.  Webfaction uses a similar system.

If you're using supervisor, I don't see why you'd need it, since supervisor
should handle the restarting of the TG app (right?  I haven't used a
supervisor setup).

some links:
http://www.lucasmanual.com/mywiki/TurboGears#head-5b7b39ba7d73d3d65bd002098460c9de19ce3113
http://tools.cherrypy.org/wiki/ModRewrite

looks like it was part of a fedora package at one time, too:
https://hosted.fedoraproject.org/packagedb/browser/fedora-packagedb-stable/tg-autostart.cgi?rev=fedora-packagedb-stable%2C51.1.2

Kevin Horn

On Jan 16, 2008 1:48 PM, Kevin Cole <[EMAIL PROTECTED]> wrote:

>
> On Jan 16, 2008 2:41 PM, Christopher Arndt <[EMAIL PROTECTED]> wrote:
>
> > Kevin Cole schrieb:
> > > I've sort of tracked down my latest problem but don't know what I did
> > > to get there nor how to get back to where I was. I can issue the
> > > start-x.py from the command prompt and all works well, but when I
> > > start from supervisor it dies (I'm assuming) because it can no longer
> > > find /usr/lib/cgi-bin/tg-autostart.cgi
> >
> > Where did tg-autostart.cgi come from? Iis not part of the TG
> > distribution, AFAIK.
>
> That's part of the problem: I've made so many changes based on so many
> recommendations here, I can no longer remember where it came form
> other than I suspect it was recommended on this list -- probably about
> the same time that supervisor (supervisord/supervisorctl) was.  I know
> I learned about supervisor from the list.
>
> --
> Ubuntu Linux DC LoCo
> Washington, DC
> http://dc.ubuntu-us.org/
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to