On Wed, Nov 18, 2009 at 8:25 AM, Fm <thefm...@gmail.com> wrote: > Hi all, > I have write a script in /etc/rc.d/init.d so that Django can start > with my server. > It may look like > start () { > echo -n $"Starting $prog: " > /usr/local/bin/python /home/admin/cc/manage.py runfcgi method=threaded > host=127.0.0.1 port=12345 > } >
/usr/bin/su nobody -c /usr/local/bin/python /home/admin/cc/manage.py runfcgi method=threaded host=127.0.0.1 port=12345 I'd be surprised if your RC system didn't provide a cleaner way of setting the user to run as though. Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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=.