I have a Perl-based FastCGI application that rarely decreases. However, when it goes down, the restart is not automatic. Restarting Apache manually always does the trick, but this is about improving application uptime.
I am going to use the cron job in conjunction with a script that uses WWW::Mechanize to periodically check the application and restart it as necessary, as suggested by people in Perl Monks:
Continue and run FastCGI processes
Before I do this, I want to know if anyone knows of the best ways to track the FastCGI process and automatically restart it when it dies, or is this the method suggested above the optimal one?
Thanks.
source share