Hello.
I have mongrel working perfectly, other than it doesn’t start when my
server reboots (not good). So my setup is this.
I have the mongrel_cluster startup file in /usr/local/etc/rc.d/ and
then a directory of symlinks to my rails apps in /usr/local/etc/
mongrel_cluster/ named whatever.yml
When I run the script from the command line ./mongrel_cluster start it
works perfectly.
Any suggestions or where to look for problems?
jcontonio wrote:
Hello.
I have mongrel working perfectly, other than it doesn’t start when my
server reboots (not good). So my setup is this.
I have the mongrel_cluster startup file in /usr/local/etc/rc.d/ and
then a directory of symlinks to my rails apps in /usr/local/etc/
mongrel_cluster/ named whatever.yml
When I run the script from the command line ./mongrel_cluster start it
works perfectly.
Any suggestions or where to look for problems?
you have to add the mongrel_cluster_ctl to the init programs/scripts
(these run at reboot).
check out the linux-command
update-rc.d # this adds the script to run on reboot
i think.
-s
This would work if I was running linux.
I am running FreeBSD.
On 2/7/07, jcontonio [email protected] wrote:
When I run the script from the command line ./mongrel_cluster start it
works perfectly.
Any suggestions or where to look for problems?
mongrel_cluster works great but if your going to use Monit to monitor
your system as it can handle this for you as a by-product of checking
a mongrel’s status.
Here are some pasties that are good examples:
http://p.caboo.se/17981
http://pastie.caboo.se/13355
–
Zack C.
http://depixelate.com
This is also wrong. I have no rc.local in /etc or /usr/local/etc.
There is rc.conf in /etc/ which I had mongrel_cluster_enable=“YES” so
I tried changing it to mongrel_cluster_ctl_enable=“YES”
Still a no go.
/usr/sbin/inetd start -c /usr/local/etc/mongrel_cluster
That is what’s running on boot when I check the current processes, but
it’s not using a config file so it’s not working.
Again. running the command in /usr/local/etc/rc.d/mongrel_cluster
start
works from command line…
But on boot it does nothing but run this
/usr/sbin/inetd start -c /usr/local/etc/mongrel_cluster
I’m not too familiar with the rc.d style configuration files, so I
can’t diagnose your problem. It appears that the startup script is
trying to run your command from the incorrect directory.
/etc/rc.local does in fact still work in FreeBSD, even if the file is
not there. Just create the file, paste your command, and it will work.
The rc man page will confirm that this is the case.
(rc)
Reading the man page may give you a clue as to what is wrong with your
current setup.
– Wes