Hi all, Im having the same problem as Steve Meyer was and still hope to find out what was wrong rather then writing a custom file as he ended up doing. I very much appreciate any insight you can provide!
Same Problem: My rails application runs great, but it needs to be started manually. I need it to restart when the machine restarts. More explicitly, If I manually run > /etc/init.d/mongrel_cluster status Then everything runs great. But if i run > service mongrel_cluster status Then I get the error: /usr/bin/mongrel_cluster_ctl:9:in `require': no such file to load -- rubygems (LoadError) That line in mongrel_cluster_ctl is just: require 'rubygems' ***** What have I done to anger the gods?? Some details on my system - perhaps i installed something in wrong place? ruby: /usr/bin/ruby rubygems: /usr/local/rubygems ***** I am new to linux - can someone help me with that line "require 'rubygems'".. What does 'require' mean in a shell script - i found no man page. What should it actually find, a file? I have the directory "/usr/local/rubygems" is that what it is looking for? Or should it find an actual file called 'rubygems' somewhere? By the way, in the /etc/init.d/mongrel_cluster I did expand the path with: export PATH=/usr/local:/usr/local/bin:$PATH And that script then echos the path when run with service command as: /usr/local:/usr/local/bin:/sbin:/usr/sbin:/usr/bin ***** Thanks for reading! Topher -- Posted via http://www.ruby-forum.com/. _______________________________________________ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users