1
0
Fork 0
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:
Evan Phoenix 2012-11-29 11:57:58 -08:00
parent 36c36f611f
commit 1c9dd1461c

View file

@ -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