Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom server doesn't daemonize #272

Open
theflow opened this issue Dec 9, 2013 · 3 comments
Open

custom server doesn't daemonize #272

theflow opened this issue Dec 9, 2013 · 3 comments

Comments

@theflow
Copy link

theflow commented Dec 9, 2013

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

@nolman
Copy link
Member

nolman commented Dec 9, 2013

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?

@theflow
Copy link
Author

theflow commented Dec 9, 2013

Hmm, you're right: I am doing this:

require 'goliath'

instead of

require 'goliath/api'
require 'goliath/runner'

That is quite subtle.

@nolman
Copy link
Member

nolman commented Dec 9, 2013

Ah ya I can see how that is, perhaps worth adding some documentation to examples/custom_server.rb ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants