So inorder to have 4 webpy backends
u should have 4 directories and start 4 supervise

so incase we have 10 webservers with 4 backends in each
we need to start supervise 40 times

Seems inelegant

On 1/30/08, Anand Chitipothu <[EMAIL PROTECTED]> wrote:
>
>
> On Jan 31, 2008 7:27 AM,  <[EMAIL PROTECTED]> wrote:
> > Please share spawn fcgi run file for multiple python backends
> >  it is not working with spawn-fcgi
> > since spawnfcgi spawns a child
> > and exits
> > so supervise keeps trying to spawn childs
> > continuously
> >
> > service/run
> > #!/bin/sh
> > cd /home/mark/work/code
> >
> > exec /opt/local/bin/spawn-fcgi   -f /home/mark/work/code/code.py -p
> 9500  >
> > /tmp/restart.log 2>&1 &
> > exec cat /tmp/restart.log &
> > exec /opt/local/bin/spawn-fcgi   -f /home/mark/work/code/code.py -p
> 9501  >
> > /tmp/restart.log 2>&1 &
> >  exec cat /tmp/restart.log &
> >
> > exec /opt/local/bin/spawn-fcgi  -f /home/mark/work/code/code.py -p
> 9502  >
> > /tmp/restart.log 2>&1 &
> > exec cat /tmp/restart.log &
> >
> > exec /opt/local/bin/spawn-fcgi -f /home/mark/work/code/code.py -p 9503 >
> > /tmp/restart.log 2>&1 ^
> >  exec cat /tmp/restart.log &
>
>
> I think, you should have once service for one process.
> When you do exec the current process is replaced by exec'ed command.
> So in your case, the process becomes a cat and dies.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to