Class: Configure::Controllers::Stop
- Inherits:
-
R
- Object
- R
- Configure::Controllers::Stop
- Defined in:
- lib/mongrel_config/win32_app.rb
Instance Method Summary collapse
Instance Method Details
#get(service) ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/mongrel_config/win32_app.rb', line 46 def get(service) runner = Thread.new do W32Support.stop(service) do |status| $service_logs << "Starting #{service}: #{status}\n" sleep 1 end end $service_group.add(runner) redirect Index end |