[Mongrel] mongrel not daemonizing for me..

Eden Li eden at mojiti.com
Tue Jun 26 22:16:42 EDT 2007


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 <beingthexemplarylists at gmail.com> 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)


More information about the Mongrel-users mailing list