Controlling Rail fcgi process name

I’m hosting multiple domains but all of my fcgi processes are named:

/usr/bin/ruby dispatch.fcgi

I’d like them to be named:

/usr/bin/ruby /fullpath/domain/public/dispatch.fcgi

That way my deployment script will only kill the fcgi’s for the right domain, not all of them. How is the process name controlled?

You should be able to mod this yourself. Change the name of the dispatch.fcgi file in RAILS_ROOT/public to whatever you want it to be, say mydomain-dispatch.fcgi. Then edit .htaccess in public to call your renamed fcgi instead of dispatch.fcgi. I haven’t tried this, but it seems like it should work.