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)
|
def graceful_stop(server)
|
||||||
log " - Gracefully stopping, waiting for requests to finish"
|
log " - Gracefully stopping, waiting for requests to finish"
|
||||||
|
@status.stop(true) if @status
|
||||||
server.stop(true)
|
server.stop(true)
|
||||||
delete_pidfile
|
delete_pidfile
|
||||||
log " - Goodbye!"
|
log " - Goodbye!"
|
||||||
|
@ -623,6 +624,7 @@ module Puma
|
||||||
end
|
end
|
||||||
|
|
||||||
def stop
|
def stop
|
||||||
|
@status.stop(true) if @status
|
||||||
@server.stop(true) if @server
|
@server.stop(true) if @server
|
||||||
delete_pidfile
|
delete_pidfile
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue