Method: Daemons::ApplicationGroup#stop_all
- Defined in:
- lib/daemons/application_group.rb
#stop_all(no_wait = false) ⇒ Object
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 |
# File 'lib/daemons/application_group.rb', line 170 def stop_all(no_wait = false) if @monitor @monitor.stop @monitor = nil setup end threads = [] @applications.each do |a| threads << Thread.new do a.stop(no_wait) end end threads.each { |t| t.join } end |