Problem altering mongrel_cluster_ctl


I’ve hit snag and was hoping someone might be able to give me some

I’m trying to implement the changes to the mongrel_cluster_ctl script
as put forth in the following post. I’m using Ubuntu. 2007/09/07/a-better-approach-
to-restarting-a-mongrel- cluster/#content

This post suggests that I replace ‘mongrel_cluster_ctl’ with the
version that he has hacked. This seems easy enough…but…

There are two locations that seem likely candidates for installing this
new file:

  1. /usr/bin/
  2. /usr/lib/ruby/gems/1.8/gems/mongrel_cluster-1.0.5/bin/

In both of these directories, there exists: ‘mongrel_cluster_ctl’.

I’ve replaced the contents of this file in both of these locations
with the new, hacked version of ‘mongrel_cluster_ctl’.

Now, when I do a ‘mongrel_rails cluster::restart’, it seems that the
old (supposedly changed) file is still being executed. There don’t
seem to be any other places where this could be. Is the file compiled
into the gem or something strange like that? I’ve used ‘find’ to find
other places where this file might exist, but only the two places listed
above are found.

Do I need to reboot to have these changes picked up?

Any clues would be sincerely appreciated.