I’ve been working with Mongrel, Mongrel_cluster and Apache and it is
However, I can’t get mongrel_cluster to start at boot time. I followed
instructions from http://mongrel.rubyforge.org/docs/mongrel_cluster.html
Boot Initialization Setup) and mongrel_cluster does not start after
rebooting the machine.
I made sure that the shebang line is correct and I also made sure that
mongrel_cluster_ctl location is in the PATH variable. Just to be on the
side I created a symbolic link in /usr/bin and still no luck.
The next thing I did was to trace the mongrel_cluster script. There is
something strange about it, and I can’t believe that nobody complained
it yet: the script takes an argument (start, stop or restart), but the
instructions provided on the mongrel_cluster webpage do not pass any
argument(s) to it. So, how is the script supposed to start? I’m not an
expert on Linux admin, but is the chkconfig application supposed to pass
“start” to the script? What about when the machine gets shut down, where
the script do we delete the mongrel pid files? (or worse, if it gets
off, and if we restart without deleting the pid files, then the script
even start the mongrel processes).
Anyway, those are small things that can be easily changed in the script,
I hardcoded “start” in the script, and my script failed on the following
which mongrel_cluster_ctl >/dev/null || exit 0
I commented out the line and provided the full path to
I dumped the $RETVAL into a log file (after calling mongrel_cluster_ctl)
it was 137.
I don’t know what else to do. I am logged in as admin, I successfully
chkconfig to add Apache to the boot script, and if I run the script
- it works!