process scripts


Does anybody know how to handle fastcgi processes with rails? I don't find any real tutorial on reaper/spinner/spawner scripts. I'm using apache and my fcgi configuration is :

  FastCgiConfig -maxClassProcesses 2 -maxProcesses 2 -minProcesses 2 -processSlack 2
  FastCgiServer /var/www/vhosts/ -idle-timeout 300 -processes 3 -restart-delay 3 -initial-env RAILS_ENV=production

It works but when I stop apache, I still have a lot of fcgi processes that I don't manage to kill and a lot of memory is consumed. I'd like to manage them externally but I don't know how to do it.

Thank you in advance,