public
Description: A very fast & simple Ruby web server
Homepage: http://code.macournoyer.com/thin/
Clone URL: git://github.com/macournoyer/thin.git
Search Repo:
--servers 1 is now considered a cluster to prevent confusion, fixes #35
macournoyer (author)
Wed Feb 06 19:33:24 -0800 2008
commit  dcb1c19e1304f3865aa988988f33611741cfa065
tree    ed084b1773755b34a97701c610c3f2cde10aae90
parent  2bad0690f53029129d3e512cde7eda66794651a2
...
38
39
40
41
42
 
43
44
45
...
85
86
87
88
89
 
90
91
92
...
150
151
152
153
 
154
155
156
...
38
39
40
 
 
41
42
43
44
...
84
85
86
 
 
87
88
89
90
...
148
149
150
 
151
152
153
154
0
@@ -38,8 +38,7 @@
0
         :port => 3000,
0
         :timeout => 60,
0
         :log => 'log/thin.log',
0
- :pid => 'tmp/pids/thin.pid',
0
- :servers => 1 # no cluster
0
+ :pid => 'tmp/pids/thin.pid'
0
       }
0
       
0
       parse!
0
@@ -85,8 +84,7 @@
0
           opts.separator ""
0
           opts.separator "Cluster options:"
0
                                                                                       
0
- opts.on("-s", "--servers NUM", "Number of servers to start",
0
- "set a value >1 to start a cluster") { |num| @options[:servers] = num.to_i }
0
+ opts.on("-s", "--servers NUM", "Number of servers to start") { |num| @options[:servers] = num.to_i }
0
           opts.on("-o", "--only NUM", "Send command to only one server of the cluster") { |only| @options[:only] = only }
0
           opts.on("-C", "--config FILE", "Load options from config file") { |file| @options[:config] = file }
0
           opts.on( "--all [DIR]", "Send command to each config files in DIR") { |dir| @options[:all] = dir } if Thin.linux?
0
@@ -150,7 +148,7 @@
0
     
0
     # +true+ if we're controlling a cluster.
0
     def cluster?
0
- @options[:only] || (@options[:servers] && @options[:servers] > 1)
0
+ @options[:only] || @options[:servers]
0
     end
0
     
0
     # +true+ if we're acting a as system service.

Comments

    No one has commented yet.