[Rails-deploy] Re: Mongrel startup
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 -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Deploying Rails" group. To post to this group, send email to rubyonrails-deployment@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en -~--~~~~--~~--~--~---
[Rails-deploy] Re: Mongrel startup
This would work if I was running linux. I am running FreeBSD. On Feb 7, 10:20 am, harper <[EMAIL PROTECTED]> wrote: > 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 > > -- > Posted viahttp://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Deploying Rails" group. To post to this group, send email to rubyonrails-deployment@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en -~--~~~~--~~--~--~---
[Rails-deploy] Re: Mongrel startup
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 On Feb 7, 2:12 pm, "Wesley Moxam" <[EMAIL PROTECTED]> wrote: > It's /etc/rc.local on FreeBSD > > http://www.freebsd.org/cgi/man.cgi?query=rc.local&apropos=0&sektion=0... > > -- Wes > > On 2/7/07, jcontonio <[EMAIL PROTECTED]> wrote: > > > > > This would work if I was running linux. > > > I am running FreeBSD. > > > On Feb 7, 10:20 am, harper <[EMAIL PROTECTED]> wrote: > > > 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 > > > > -- > > > Posted viahttp://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Deploying Rails" group. To post to this group, send email to rubyonrails-deployment@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en -~--~~~~--~~--~--~---
[Rails-deploy] Re: Mongrel startup
On 2/7/07, jcontonio <[EMAIL PROTECTED]> 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? 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 Chandler http://depixelate.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Deploying Rails" group. To post to this group, send email to rubyonrails-deployment@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en -~--~~~~--~~--~--~---
[Rails-deploy] Re: Mongrel startup
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. (http://www.freebsd.org/cgi/man.cgi?query=rc&apropos=0&sektion=0&manpath=FreeBSD+6.2-RELEASE&format=html) Reading the man page may give you a clue as to what is wrong with your current setup. -- Wes On 2/7/07, jcontonio <[EMAIL PROTECTED]> wrote: > > > 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 > > On Feb 7, 2:12 pm, "Wesley Moxam" <[EMAIL PROTECTED]> wrote: > > It's /etc/rc.local on FreeBSD > > > > http://www.freebsd.org/cgi/man.cgi?query=rc.local&apropos=0&sektion=0... > > > > -- Wes > > > > On 2/7/07, jcontonio <[EMAIL PROTECTED]> wrote: > > > > > > > > > This would work if I was running linux. > > > > > I am running FreeBSD. > > > > > On Feb 7, 10:20 am, harper <[EMAIL PROTECTED]> wrote: > > > > 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 > > > > > > -- > > > > Posted viahttp://www.ruby-forum.com/. > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Deploying Rails" group. To post to this group, send email to rubyonrails-deployment@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en -~--~~~~--~~--~--~---