Integration of Mongrel with RHEL, Fedora and derivatives

Hi gurus,

here at Scuola IaD we have some Rails applications in production, I’m
the sysadmin so I made a script for governing mongrel instances via
the service command and integrating their management in a RHEL
environment. This script, available with more information here:

http://bitsandchaos.wordpress.com/2007/12/14/mongrel-integration-for-rhel-fedora-and-derivatives-new-release/

has these features:

  • it does not use mongrel_cluster; instead, each Rails application is
    described by a text file, that specifies also on which ports it should
    listen to;
  • it spawns a mongrel_rails instance for each port and each application;
  • it can selectively stop/start one application, or all of them;
  • it deals with the pid stale file problem, ensuring they are deleted
    when it’s needed;
  • it allows for a finer grain of security, as each Rails application
    can be owned by a different user;

in fact we are using this script for also governing mongrel instances
via monit, and it’s totally compatible with RHEL 4/5, Fedora and
derivatives.

I’m happy if someone will use it, and more happy if someone will take
a look at it to suggest improvements and corrections.

Quoting Paolo C. [email protected]:

here at Scuola IaD we have some Rails applications in production, I’m
the sysadmin so I made a script for governing mongrel instances via
the service command and integrating their management in a RHEL
environment. This script, available with more information here:

Private Site

Paolo, I hung on to this email and finally got the time to download
and try your init script. Fabulous! thanks for making this available
to the community.