Ticket #31 (closed bug: wontfix)

Opened 2 months ago

Last modified 2 months ago

mongrel_cluster doesn't work with monit

Reported by: mikebailey Assigned to: evanweaver
Priority: minor Milestone: 1.2
Component: Mongrel Keywords:
Cc:

Description

mongrel_cluster requires that the path to mongrel_rails is in your PATH. This is because it tries to execute it as a system call without specifying a path. Code here

This means it can't be called by Monit which offers a limited path (PATH=/bin:/usr/bin:/sbin:/usr/sbin). Calling from Monit fails:

/usr/local/bin/mongrel_rails cluster::start --clean -C /etc/mongrel_cluster/tubemarks.yml --only 8010

Creating a symlink from /usr/local/bin/mongrel_rails to /usr/bin/mongrel_rails allows it to work but I think rather than add this workaround to deprec it would be better to fix the problem in mongrel cluster.

Would be interested in accepting this change if I made it?

- Mike

Given the mongrel_rails script is just calls "load 'mongrel_rails'", could we do away with the system call to it?

Change History

05/06/08 23:32:10 changed by evanweaver

  • status changed from new to closed.
  • resolution set to wontfix.

You can specify a different PATH variable in a Monit commands via the 'env' utility.

Anyway, I think something related to this is already fixed stable_1-2.