lib/snowman-io/launcher.rb in snowman-io-0.1.0 vs lib/snowman-io/launcher.rb in snowman-io-0.2.0

- old
+ new

@@ -8,18 +8,18 @@ def start Migration.new.migrate app = Rack::Cascade.new [API::Root, Web] @web_server = WebServer.supervise_as(:web_server, app, @options.slice(:port, :host, :verbose)) - @ping = Loop::Ping.supervise_as(:ping) @main = Loop::Main.supervise_as(:main) @checks = Loop::Checks.supervise_as(:checks) + @spiders = Loop::Spiders.supervise_as(:checks) end def stop + @spiders.terminate @checks.terminate @main.terminate - @ping.terminate @web_server.terminate # TODO: shutdown blocking? end end end