lib/sensu/client/process.rb
def stop
        @logger.warn("stopping")
        last_state = @state
        pause
        if @settings[:client][:deregister] == true && last_state != :initializing
          deregister
        end
        @state = :stopping
        complete_checks_in_progress do
          close_sockets
          @transport.close if @transport
          super
        end
      end
# Stop the Sensu client process, pausing it, completing check
# executions in progress, closing the transport connection, and
# exiting the process (exit 0). After pausing the process, the
# process/daemon `@state` is set to `:stopping`.  Also sends
# deregistration check result if configured to do so.
Stop the Sensu client process, pausing it, completing check
executions in progress, closing the transport connection, and
exiting the process (exit 0). After pausing the process, the
process/daemon `@state` is set to `:stopping`.  Also sends
deregistration check result if configured to do so.
Stop the Sensu client process pausing it completing check executions in progress closing the transport connection and exiting the process ( exit 0 ) . After pausing the process the process / daemon ` @state ` is set to ` : stopping ` . Also sends deregistration check result if configured to do so .
def stop
        @logger.warn("stopping")
        last_state = @state
        pause
        if @settings[:client][:deregister] == true && last_state != :initializing
          deregister
        end
        @state = :stopping
        complete_checks_in_progress do
          close_sockets
          @transport.close if @transport
          super
        end
      end
def stop @logger . warn ( "stopping" ) last_state = @state pause if @settings [ :client ] [ :deregister ] == true && last_state != :initializing deregister end @state = :stopping complete_checks_in_progress do close_sockets @transport . close if @transport super end end
Stop the Sensu client process, pausing it, completing check
executions in progress, closing the transport connection, and
exiting the process (exit 0).
Stop the Sensu client process pausing it completing check executions in progress closing the transport connection and exiting the process ( exit 0 ) .