deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@redhat.com
Subject [PATCH 2/3] * bin/deltacloudd: start WEBRick so that it can be interrupted with ^C
Date Thu, 26 Jan 2012 01:23:13 GMT
From: David Lutterkort <lutter@redhat.com>


Signed-off-by: David Lutterkort <lutter@redhat.com>
---
 server/bin/deltacloudd |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/server/bin/deltacloudd b/server/bin/deltacloudd
index 4311035..55a268e 100755
--- a/server/bin/deltacloudd
+++ b/server/bin/deltacloudd
@@ -199,10 +199,10 @@ unless have_thin
   port = ENV["API_PORT"].to_i
 
   puts "=> Ctrl-C to shutdown server"
-  Rack::Handler::WEBrick.run(app,
-                             :Host => ENV["API_HOST"],
-                             :Port => port,
-                             :AccessLog => [])
+  Rack::Server::start(:app => app,
+                      :Host => ENV["API_HOST"],
+                      :Port => port,
+                      :AccessLog => [])
 else
   argv_opts = ARGV.clone
   argv_opts << ['start'] unless Thin::Runner.commands.include?(options[0])
-- 
1.7.7.5


Mime
View raw message