iain duncan schrieb:
> I folks, maybe someone will have a clue for me. I have a bash script in
> my tg project directory that sources in the virtual env and then calls
> the python start script
> 
> source /home/projectuser/project_ve/bin/activate
> 
> and then calls start-myproject.py
> 
> 
> This seems to work fine, I can cd to /etc, and then call the script
> directly as root:
> 
> /home/projectuser/project_ve/project/start_project
> 
> And the app starts up fine.
> 
> But when I add the same command to my supervisord.conf file, it won't
> stay running and just exits. In both cases I am running as root. Anyone
> know what I might have missed that would make the start up script exit
> early?

Most probably the supervisord cleans the environment bevore inoking the 
script.

Instead of sourcing, you should be able to simply use the VE python 
interpreter directly. I had no troubles doing that.

Diez

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