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:
parent
bdb3478fb6
commit
477f403de9
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue