custom server doesn't daemonize
theflow opened this issue · 3 comments
Hello,
when I'm running the custom_server example (https://github.com/postrank-labs/goliath/blob/master/examples/custom_server.rb) with the daemonize option like this
ruby custom_server.rb -sv -d
it starts serving requests, but doesn't daemonize. Without the custom server it daemonizes just fine.
Any ideas? I just want to provide a custom logger, maybe there is another way of doing that?
thanks,
Florian
Hmm, the example works correctly for me using both master and 1.0.3, ruby 1.9.3 and ruby 2.0. Are you running your own custom server or the example? If your own can you provide an example?
Hmm, you're right: I am doing this:
require 'goliath'
instead of
require 'goliath/api'
require 'goliath/runner'
That is quite subtle.
Ah ya I can see how that is, perhaps worth adding some documentation to examples/custom_server.rb ?