I have successfully deployed two applications, one being served by a single mongrel instance, the other by FastCGI. I'd like to get the two apps restarted on a nightly basis through a cron job.
I can't use the mongrel_rails restart command as my log/mongrel.pid gets stolen all the time and the restart command is helpless without mongrel.pid -> why is the mongrel.pid being deleted and when? Do you have any other suggestions how to automatically restart mongrel over night?
What is the best way to restart the FastCGI app: using script/process/reaper --dispatcher=dispatch.fcgi as in the capistrano task?
Thanks for your help!
Cheers!