mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Shutdown status server properly
This commit is contained in:
parent
36c36f611f
commit
1c9dd1461c
1 changed files with 2 additions and 0 deletions
|
@ -321,6 +321,7 @@ module Puma
|
|||
|
||||
def graceful_stop(server)
|
||||
log " - Gracefully stopping, waiting for requests to finish"
|
||||
@status.stop(true) if @status
|
||||
server.stop(true)
|
||||
delete_pidfile
|
||||
log " - Goodbye!"
|
||||
|
@ -623,6 +624,7 @@ module Puma
|
|||
end
|
||||
|
||||
def stop
|
||||
@status.stop(true) if @status
|
||||
@server.stop(true) if @server
|
||||
delete_pidfile
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue