Hello, I have added this to my apache config file...(debian/ubuntu) <Location /webapp> # Adjust these lines and uncomment to restart the server if it isn't already running ErrorDocument 503 /cgi-bin/webapp-autostart.py ErrorDocument 502 /cgi-bin/webapp-autostart.py </Location>
which tells apache to start autostart.py if it encounters 503 error. The autostart looks like this: #!/usr/bin/python print "Content-type: text/html\r\n" print """<html><head><META HTTP-EQUIV="Refresh" CONTENT="4; URL=/webapp/"></head><body>Restarting site ...<a href="/webapp/">click here<a></body></html>""" import os import sys os.setpgid(os.getpid(), 0) os.system(sys.executable + ' /usr/bin/start-webapp.py /usr/local/bin/prod.cfg &') but when I run this autostart program as root it workers properly. But if I do it as www-data it doesn't work. The localhost/webapp is in infinite loop. Webapp does start. How did you guys deal with this problem? How do you guys make sure the turbogears app runs 24/7 on production server? Lucas --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

