aboutsummaryrefslogtreecommitdiffstats
path: root/railties/bin/listener
diff options
context:
space:
mode:
Diffstat (limited to 'railties/bin/listener')
-rw-r--r--railties/bin/listener6
1 files changed, 5 insertions, 1 deletions
diff --git a/railties/bin/listener b/railties/bin/listener
index 2310282204..493ac9dca4 100644
--- a/railties/bin/listener
+++ b/railties/bin/listener
@@ -2,6 +2,7 @@ require "drb"
ENV["RAILS_ENV"] = 'production'
require "#{File.dirname(__FILE__)}/../config/environment.rb"
require 'fcgi_handler'
+require 'rbconfig'
VERBOSE = false
@@ -90,7 +91,10 @@ if ARGV.shift == 'start-listeners'
if number > 1
fork do
- exec 'ruby', __FILE__, 'start-listeners', tracker, (number - 1).to_s
+ exec(
+ File.join(Config::CONFIG['bin_dir'], Config::CONFIG['RUBY_SO_NAME']),
+ __FILE__, 'start-listeners', tracker, (number - 1).to_s
+ )
end
end