I played around with this some more and when I changed
line 142 of
/opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails
from "exec cmd" to "system cmd" Mongrel has
successfully restarted every time I've tried
("mongrel_rails restart").Hell if I know why exec doesn't work -- googling on "exec Operation not supported ruby" didn't turn up much. Maybe somebody on the Ruby list knows. I also copied the 'cmd = "..."' and 'exec cmd' into a new Ruby script, and THAT works fine. I'd guess for some reason Ruby can't replace the currently running Mongrel process with "exec cmd" (as exec does) -- perhaps mongrel_rails has something open? But that's just my ignorant guess. :P Also, before I restart Mongrel, its process (a la "ps axu") looks like this: /opt/local/bin/ruby /opt/local/bin/mongrel_rails start -d -p 3001 but after restarting: ruby /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails start -d -p 3001 Possible to make it the same? :) Joe Mac OS X / Powerbook MUCRAP-CE Master Apprentice --- Joe Ruby <[EMAIL PROTECTED]> wrote: > Date: Mon, 28 Aug 2006 17:15:20 -0700 (PDT) > From: Joe Ruby <[EMAIL PROTECTED]> > Subject: restart - `exec': Operation not supported > To: [email protected] > > I'm using the latest Mongrel (0.3.13.4) and > restarting > causes Mongrel to die. From mongrel.log: > > ** USR2 signal received. > ** Restarting with arguments: ruby > /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails > start -C config/mongrel.yml > /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:142:in > `exec': Operation not supported - ruby > /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails > start -C config/mongrel.yml (Errno::EOPNOTSUPP) > from > /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:142:in > `run' > from > /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/command.rb:203:in > `run' > from > /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:231 > from /opt/local/bin/mongrel_rails:18 > > I tried 'ruby > /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails > start -C config/mongrel.yml' from the commandline > and > it started up Mongrel. > > Joe > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > ____________________________________________________________________________________ Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com ____________________________________________________________________________________ Sponsored Link Get a free Motorola Razr! Today Only! Choose Cingular, Sprint, Verizon, Alltel, or T-Mobile. http://www.letstalk.com/inlink.htm?to=592913 _______________________________________________ Mongrel-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/mongrel-users
