mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
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
This commit is contained in:
parent
0c566e721f
commit
91a3aa427a
1 changed files with 3 additions and 1 deletions
|
@ -158,7 +158,8 @@ OPTIONS = {
|
||||||
:docroot => "public",
|
:docroot => "public",
|
||||||
:debug => false,
|
:debug => false,
|
||||||
:config_file => nil,
|
:config_file => nil,
|
||||||
:config_script => nil
|
:config_script => nil,
|
||||||
|
:cpu => nil
|
||||||
}
|
}
|
||||||
|
|
||||||
ARGV.options do |opts|
|
ARGV.options do |opts|
|
||||||
|
@ -175,6 +176,7 @@ ARGV.options do |opts|
|
||||||
opts.on('-B', '--debug', "Enable debugging mode") { |OPTIONS[:debug]| }
|
opts.on('-B', '--debug', "Enable debugging mode") { |OPTIONS[:debug]| }
|
||||||
opts.on('-C', '--config FILE', "Use a config file") { |OPTIONS[:config_file]| }
|
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('-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!
|
opts.parse!
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue