AH. I figured it out. There weren't any errors thrown because the stoud was being redirected to null, and there were permission denied errors to create files in /var/run/
On Sun, Jul 5, 2009 at 4:44 PM, aaron smith<beingthexemplaryli...@gmail.com> wrote: > Just as another illustration of the problem. I'm using the example in > the help docs for the runfcgi command - even that doesn't work. > > $>python manage.py runfcgi socket=/tmp/fcgi.sock method=prefork > daemonize=true pidfile=/var/run/django-fcgi.pid > > It doesn't write out the pid file, and it doesn't start the process. > No errors thrown either. > > However, if you take out the pidfile parameter, it does work. > > $>python manage.py runfcgi socket=/tmp/fcgi.sock method=prefork daemonize=true > > This seems like a problem right? I'm running mac os x 10.5 > > Thanks for any help. > > > > On Sun, Jul 5, 2009 at 3:55 PM, aaron > smith<beingthexemplaryli...@gmail.com> wrote: >> Hey all, I'm running into something that I'm not sure if it's a >> problem, or something I might be doing wrong. What I'm working on is >> some deployment scripting, and using pid files to kill processes. I'm >> having problems with the pidfile attribute. >> >> When I run manage.py like this, the pidfile is written as expected >> (I'm testing out tcp and unix sockets just to for good measure): >> >> python manage.py runfcgi host=127.0.0.1 port=8024 daemonize=false >> pidfile=serve/fcgi/port_8024.pid >> python manage.py runfcgi socket=/tmp/fcgi.sock daemonize=false >> pidfile=serve/fcgi/port_8024.pid >> >> After each of those, I run this: >> >> $>more serve/fcgi/port_8024.pid >> >> It correctly has the pid in it. >> >> Then I delete the pid file: >> >> $>rm serve/fcgi/port_8024.pid >> >> Now I try running it daemonized: >> >> python manage.py runfcgi host=127.0.0.1 port=8024 daemonize=true >> pidfile=serve/fcgi/port_8024.pid >> python manage.py runfcgi socket=/tmp/fcgi.sock daemonize=true >> pidfile=serve/fcgi/port_8024.pid >> >> After doing that, it hasn't created the port_8024.pid file. >> >> This is where it gets interesting. I'm noticing that for some reason >> the fcgi isn't spawning either - when I have the pidfile=xxx parameter >> specified. >> >> When I run `ps -ax` I don't see the process there. >> >> But, when I run it again, without the pidfile: >> >> python manage.py runfcgi host=127.0.0.1 port=8024 daemonize=true >> python manage.py runfcgi socket=/tmp/fcgi.sock daemonize=true >> >> Now the process actually spawns, and I see it in `ps -ax` >> >> Anyone have any idea what's going on? Is this a bug? >> >> Thanks for the help. >> > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---