about summary refs log tree commit homepage
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/unicorn2
-rwxr-xr-xbin/unicorn_rails2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/unicorn b/bin/unicorn
index f8c20dc..f476a33 100755
--- a/bin/unicorn
+++ b/bin/unicorn
@@ -117,4 +117,4 @@ if $DEBUG
 end
 
 Unicorn::Launcher.daemonize!(options) if rackup_opts[:daemonize]
-Unicorn.run(app, options)
+Unicorn::HttpServer.new(app, options).start.join
diff --git a/bin/unicorn_rails b/bin/unicorn_rails
index 58c232b..860a9ce 100755
--- a/bin/unicorn_rails
+++ b/bin/unicorn_rails
@@ -205,4 +205,4 @@ if rackup_opts[:daemonize]
   options[:pid] = "tmp/pids/unicorn.pid"
   Unicorn::Launcher.daemonize!(options)
 end
-Unicorn.run(app, options)
+Unicorn::HttpServer.new(app, options).start.join