On 6/26/07, Eden Li <[EMAIL PROTECTED]> wrote:
If I read the docs correctly, after you call #daemonize, you can just exit the script. You don't need the `config.run.join` step. Maybe move that into an else clause after the OPTIONS[:daemon] check. BTW, where did you get RUBYAMF::MongrelServlet? On 6/27/07, aaron smith <[EMAIL PROTECTED]> wrote: > > config = Mongrel::Configurator.new(:host => OPTIONS[:ip]) do > > #debug('/gateway.rb',[:access,:threads]) > > listener :port => OPTIONS[:port] do > > uri("/gateway.rb", :handler => RUBYAMF::MongrelServlet.new, > :num_processors => OPTIONS[:processes]) > > end > > end > > > > if OPTIONS[:daemon] > > config.daemonize(:log_file => > '../../rubyamf_core/logs/mongrel.log') > > end > > > > config.run.join > > > > I get one error: > > > usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 /lib/mongrel/configurator.rb:182:in > `join': can't convert nil into String (TypeError) _______________________________________________ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users
Hey Eden config.run.join is actually what keeps it running. if I do a "ps x | grep mongrel" the process shows up.. but if I don't run config.run.join it doesn't keep running.. config = Mongrel::Configurator.new(:host => OPTIONS[:ip]) do #debug('/gateway.rb',[:access,:threads]) listener :port => OPTIONS[:port] do uri("/gateway.rb", :handler => RUBYAMF::MongrelServlet.new) end end if OPTIONS[:daemon] config.daemonize(:cwd => Dir.pwd, :log_file => '/rubyamf_core/logs/mongrel.log') end config.run.join The problem still is that mongrel seems to be daemonizing correctly but the application doesn't perform as expected, (not doing remoting correctly).. A request comes in and no response is ever returned.. any ideas?
_______________________________________________ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users