After all the discussion on the list a while ago about setting the generated site files to default to "/usr/bin/env ruby" instead of the system value, it seemed appropriate for me to post this here. It would seem that under FreeBSD, using "/usr/bin/env ruby" instead of "/usr/local/bin/ruby" causes Lighttpd to not start properly on boot (or from cron for those of us on Textdrive). I found this information on http://typo.leetsoft.com/trac/wiki/TypoOnFreebsd <snip> I also had to modify some other paths of a few files in public to get my startup scripts to work during reboot. It was a bit perplexing for a while there, as I could run them manually from command line, but they failed upon actual reboot. In any event, the fix was replacing /usr/bin/env ruby with /usr/local/bin/ruby in public/dispatch.fcgi and public/dispatch.rb. </snip> HTH someone out there :) Cheers, Dan
Having a look at http://www.freebsd.org/cgi/query-pr.cgi?pr=86567 it looks to me like that''s the problem - I''ve put a note suggesting you stick /usr/local/bin in your path in the lighttpd init script on the wiki page. I don''t have w00+ on a freebsd box at the minute to check so I can''t confirm, if someone else can try it let me know and I''ll correct the wiki page (or you can, whatever). On 03/10/05, Dan Sketcher <dansketcher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> After all the discussion on the list a while ago about setting the > generated site files to default to "/usr/bin/env ruby" instead of the > system value, it seemed appropriate for me to post this here. > > It would seem that under FreeBSD, using "/usr/bin/env ruby" instead of > "/usr/local/bin/ruby" causes Lighttpd to not start properly on boot > (or from cron for those of us on Textdrive). > > I found this information on http://typo.leetsoft.com/trac/wiki/TypoOnFreebsd > <snip> > I also had to modify some other paths of a few files in public to get > my startup scripts to work during reboot. It was a bit perplexing for > a while there, as I could run them manually from command line, but > they failed upon actual reboot. In any event, the fix was replacing > > /usr/bin/env ruby > > with > > /usr/local/bin/ruby > > in public/dispatch.fcgi and public/dispatch.rb. > </snip> > > HTH someone out there :) > > Cheers, > Dan > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Rasputin :: Jack of All Trades - Master of Nuns
On Monday 03 Oct 2005 01:35, Dan Sketcher wrote:> It would seem that under FreeBSD, using "/usr/bin/env ruby" instead of > "/usr/local/bin/ruby" causes Lighttpd to not start properly on boot > (or from cron for those of us on Textdrive).Aha!!!! So that might explain why my reboot cronjob has failed to start the last few times Davie was rebooted.> In any event, the fix was replacing > /usr/bin/env ruby > with > /usr/local/bin/ruby > in public/dispatch.fcgi and public/dispatch.rb.> HTH someone out there :)Absolutely - thanks very much! Here''s hoping that fixes the until-now unsolved mystery of the broken reboot lighttpd cronjob, although it does seem more of a workaround than a fix. Still, it''ll do for now. :-) Cheers, ~Dave -- Dave Silvester Rent-A-Monkey Website Development Web: http://www.rentamonkey.com/
On Mon, Oct 03, 2005 at 11:36:56AM +0100, Dick Davies wrote:> Having a look at > > http://www.freebsd.org/cgi/query-pr.cgi?pr=86567 > > it looks to me like that''s the problem - I''ve put a note suggesting > you stick /usr/local/bin in your path in the lighttpd init script on the > wiki page.That does work, yes. I was hoping that our rcNG would have a method to supplement the path for a particular script, but that doesn''t seem to be the case. In the end I went with the "edit dispatch.fcgi" route too. Ceri> On 03/10/05, Dan Sketcher <dansketcher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > After all the discussion on the list a while ago about setting the > > generated site files to default to "/usr/bin/env ruby" instead of the > > system value, it seemed appropriate for me to post this here. > > > > It would seem that under FreeBSD, using "/usr/bin/env ruby" instead of > > "/usr/local/bin/ruby" causes Lighttpd to not start properly on boot > > (or from cron for those of us on Textdrive). > > > > I found this information on http://typo.leetsoft.com/trac/wiki/TypoOnFreebsd > > <snip> > > I also had to modify some other paths of a few files in public to get > > my startup scripts to work during reboot. It was a bit perplexing for > > a while there, as I could run them manually from command line, but > > they failed upon actual reboot. In any event, the fix was replacing > > > > /usr/bin/env ruby > > > > with > > > > /usr/local/bin/ruby > > > > in public/dispatch.fcgi and public/dispatch.rb. > > </snip> > > > > HTH someone out there :) > > > > Cheers, > > Dan-- Only two things are infinite, the universe and human stupidity, and I''m not sure about the former. -- Einstein (attrib.) _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On 03/10/05, Ceri Davies <ceri-1+HvKGkhkYRIf6P1QZMOBw@public.gmane.org> wrote:> On Mon, Oct 03, 2005 at 11:36:56AM +0100, Dick Davies wrote: > > Having a look at > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=86567 > > > > it looks to me like that''s the problem - I''ve put a note suggesting > > you stick /usr/local/bin in your path in the lighttpd init script on the > > wiki page. > > That does work, yes. I was hoping that our rcNG would have a method to > supplement the path for a particular script, but that doesn''t seem to be > the case. > > In the end I went with the "edit dispatch.fcgi" route too.Can you update the init script on that wiki page then? cheers.> Ceri > > > On 03/10/05, Dan Sketcher <dansketcher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > After all the discussion on the list a while ago about setting the > > > generated site files to default to "/usr/bin/env ruby" instead of the > > > system value, it seemed appropriate for me to post this here. > > > > > > It would seem that under FreeBSD, using "/usr/bin/env ruby" instead of > > > "/usr/local/bin/ruby" causes Lighttpd to not start properly on boot > > > (or from cron for those of us on Textdrive). > > > > > > I found this information on http://typo.leetsoft.com/trac/wiki/TypoOnFreebsd > > > <snip> > > > I also had to modify some other paths of a few files in public to get > > > my startup scripts to work during reboot. It was a bit perplexing for > > > a while there, as I could run them manually from command line, but > > > they failed upon actual reboot. In any event, the fix was replacing > > > > > > /usr/bin/env ruby > > > > > > with > > > > > > /usr/local/bin/ruby > > > > > > in public/dispatch.fcgi and public/dispatch.rb. > > > </snip> > > > > > > HTH someone out there :) > > > > > > Cheers, > > > Dan > > -- > Only two things are infinite, the universe and human stupidity, and I''m > not sure about the former. -- Einstein (attrib.) > > >-- Rasputin :: Jack of All Trades - Master of Nuns
On Mon, Oct 03, 2005 at 02:00:32PM +0100, Dick Davies wrote:> On 03/10/05, Ceri Davies <ceri-1+HvKGkhkYRIf6P1QZMOBw@public.gmane.org> wrote: > > On Mon, Oct 03, 2005 at 11:36:56AM +0100, Dick Davies wrote: > > > Having a look at > > > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=86567 > > > > > > it looks to me like that''s the problem - I''ve put a note suggesting > > > you stick /usr/local/bin in your path in the lighttpd init script on the > > > wiki page. > > > > That does work, yes. I was hoping that our rcNG would have a method to > > supplement the path for a particular script, but that doesn''t seem to be > > the case. > > > > In the end I went with the "edit dispatch.fcgi" route too. > > Can you update the init script on that wiki page then? cheers.Yeah, I''ll get round to it at some point. I''ll also start looking for supporters for doing this "properly". Ceri -- Only two things are infinite, the universe and human stupidity, and I''m not sure about the former. -- Einstein (attrib.) _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails