[Mongrel] mongrel not daemonizing for me..
beingthexemplarylists at gmail.com
Tue Jun 26 19:43:28 EDT 2007
On 6/26/07, aaron smith <beingthexemplarylists at gmail.com> wrote:
> Ok here is my latest configurator block..
> config = Mongrel::Configurator.new(:host => OPTIONS[:ip]) do
> listener :port => OPTIONS[:port] do
> uri("/gateway.rb", :handler => RUBYAMF::MongrelServlet.new,
> :num_processors => OPTIONS[:processes])
> if OPTIONS[:daemon]
> config.daemonize(:log_file => '../../rubyamf_core/logs/mongrel.log')
> I get one error:
> `join': can't convert nil into String (TypeError)
> Thanks everyone
Ok I got it daemonizing correctly with this config block
config = Mongrel::Configurator.new(:host => OPTIONS[:ip]) do
listener :port => OPTIONS[:port] do
uri("/gateway.rb", :handler => RUBYAMF::MongrelServlet.new)
config.daemonize(:cwd => Dir.pwd, :log_file =>
Now my question is: why doesn't it run as expected with its daemonized.. if
I run it without being daemonized it's fine.. but as soon as its daemonized
it doesn't run as expected. Any ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mongrel-users