From 1c9dd1461ca1ba9c0339d5855b586f2b943db7a4 Mon Sep 17 00:00:00 2001 From: Evan Phoenix Date: Thu, 29 Nov 2012 11:57:58 -0800 Subject: [PATCH] Shutdown status server properly --- lib/puma/cli.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/puma/cli.rb b/lib/puma/cli.rb index 82b7f436..b23785bb 100644 --- a/lib/puma/cli.rb +++ b/lib/puma/cli.rb @@ -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