I've almost got my server working, just a few last kinks...
I'm using a cgi script to autostart the TurboGears server if someone
requests the page and it isn't running (I'm using the Apache Proxy
method). Everything works fine if i run the script from the console,
but if Apache runs the script, the server starts up, serves a single
page, then stops serving content. The server keeps running, but every
request produces this:
HTTP/1.1 Date: Wed, 11 Oct 2006 16:37:47 GMT
Server: CherryPy/2.2.1
Connection: close
I've tried running the statup script as the same user that apache is
running as, and it works fine. Does this make sense to anyone?
Here's my autostart script:
#!/usr/bin/python2.4
print "Content-type: text/html\r\n"
print '<html><head></head><body>restarting server...</body></html>'
import os
os.setpgid(os.getpid(), 0)
os.system('/usr/bin/env python /var/www/bcstudio/start-bcstudio.py
/var/www/bcstudio/prod.cfg &')
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---