lib/sensu/api/process.rb
def stop
        @logger.warn("stopping")
        EM::stop_server(@http_server)
        @redis.close if @redis
        @transport.close if @transport
        super
      end
# Stop the Sensu API process. This method stops the HTTP server,
# closes the Redis and transport connections, sets the service
# state to `:stopped`, and stops the EventMachine event loop.
Stop the Sensu API process. This method stops the HTTP server,
closes the Redis and transport connections, sets the service
state to `:stopped`, and stops the EventMachine event loop.
Stop the Sensu API process . This method stops the HTTP server closes the Redis and transport connections sets the service state to ` : stopped ` and stops the EventMachine event loop .
def stop
        @logger.warn("stopping")
        EM::stop_server(@http_server)
        @redis.close if @redis
        @transport.close if @transport
        super
      end
def stop @logger . warn ( "stopping" ) EM :: stop_server ( @http_server ) @redis . close if @redis @transport . close if @transport super end
Stop the Sensu API process.
Stop the Sensu API process .