Method: Thin::Controllers::Cluster#restart
- Defined in:
- lib/thin/controllers/cluster.rb
#restart ⇒ Object
Stop and start the servers.
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/thin/controllers/cluster.rb', line 66 def restart unless onebyone # Let's do a normal restart by defaults stop sleep 0.1 # Let's breath a bit shall we ? start else with_each_server do |n| stop_server(n) sleep 0.1 # Let's breath a bit shall we ? start_server(n) wait_until_server_started(n) end end end |