What is a good strategy to restart running FastCGI processes automatically?

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.

+4
source share
3 answers

Monit is a good monitoring daemon that can perform automatic reboots and / or notifications.

+3
source

How about the process not being controlled by Apache, but using a mechanism similar to init(8) , it starts getty processes? I found daemon to be quite helpful.

+2
source

Most web servers offer to offer this as a configuration option.

0
source

All Articles