From 91a3aa427a239d1e9eb864bf1af5eafc853d9528 Mon Sep 17 00:00:00 2001 From: luislavena Date: Sun, 14 May 2006 11:50:43 +0000 Subject: [PATCH] The win32 service ignored the process CPU affinity, fixed. git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@178 19e92222-5c0b-0410-8929-a290d50e31e9 --- projects/mongrel_service/bin/mongrel_service | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/mongrel_service/bin/mongrel_service b/projects/mongrel_service/bin/mongrel_service index b54ef945..285ca1e0 100644 --- a/projects/mongrel_service/bin/mongrel_service +++ b/projects/mongrel_service/bin/mongrel_service @@ -158,7 +158,8 @@ OPTIONS = { :docroot => "public", :debug => false, :config_file => nil, - :config_script => nil + :config_script => nil, + :cpu => nil } ARGV.options do |opts| @@ -175,6 +176,7 @@ ARGV.options do |opts| opts.on('-B', '--debug', "Enable debugging mode") { |OPTIONS[:debug]| } opts.on('-C', '--config FILE', "Use a config file") { |OPTIONS[:config_file]| } opts.on('-S', '--script FILE', "Load the given file as an extra config script.") { |OPTIONS[:config_script]| } + opts.on('-u', '--cpu CPU', "Bind the process to specific cpu, starting from 1.") { |OPTIONS[:cpu]| } opts.parse! end