1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

redirect io right after daemonizing so startup errors are shown. Fixes #359

This commit is contained in:
Evan Phoenix 2014-12-12 17:52:15 -08:00
parent bdb3478fb6
commit 477f403de9

View file

@ -73,6 +73,7 @@ module Puma
if daemon?
log "* Daemonizing..."
Process.daemon(true)
redirect_io
end
load_and_bind
@ -84,12 +85,11 @@ module Puma
@server = server = start_server
unless @options[:daemon]
unless daemon?
log "Use Ctrl-C to stop"
redirect_io
end
redirect_io
@cli.events.fire_on_booted!
begin