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?