le 16.02.2008 08:03 iain duncan a écrit:
> Maybe someone has encountered this. I have a user on the deployment
> system for the site, and that user can start the app fine. I can ssh in
> as them, they own all the tg files, and running ./start-momcafe.py is
> cool.
>
> I also have supervisord running, and it can start the site fine if
> running as root, so this is my supervisord.conf
>
> [program:start-momcafe.py]
> ;user=momcafe
>
> command=python /home/momcafe/momcafe-live/start-momcafe.py
> momcafe-live-prod.cfg             
>
> directory=/home/momcafe/momcafe-live
>
> But when I take out the comment char and set user=momcafe, so that
> supervisord will switch to that user before executing the command,
> supervisord fails to start the app. I know supervisord is supposed to be
> ok as root, but I'm guessing it's not really supposed to start my apps
> as root. 
>
> Anyone encounter this?
>
>   
Is there anything in the logs (/var/log/supervisord.log and 
/var/log/xxxxx.log where xxxxx.log is the log defined in your 
uspervisord.conf for the application) ?
I had something similar where the user could not open the database 
(sqlite) or the application log (the one defined in your 
momcafe-live-prod.cfg) because as it started to be run by root, the 
acces right where wrong for the actual user.
> 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