I'm trying to get the autostart cgi hack to work to kick start CherryPy
( why oh why does it have to close itself on any kind of error
anyway? ).

However, following the instructions doesn't seem to be working for me, I
can get the 502 condition to run the script, but I can't get the script
to successfully start cherry py. Here is the script:

#!/usr/bin/python

print "Content-type: text/html\r\n"
print """<html><head><META HTTP-EQUIV="Refresh"
CONTENT="1;URL=/"></head><body><a
hre="/">Restarting.</a></body></html>"""

import os
os.setpgid( os.getpid(), 0 )
os.system( '/usr/bin/python /home/cliffhanger/Credit/start-credit.py &')


When I try to run this from the cgi directory, I get this error from
CherryPy:

TurboGears requires autoreload.package to be set. It can be an empty
value, which will use CherryPy's default behavior which is to check
every module. Setting an actual package makes the check much faster.


The above doesn't happen when I try to start it from the project
directory. Any idea what I need to do to get that working?

Thanks
Iain


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