lib/sensu/server/process.rb
def pause
        unless @state == :pausing || @state == :paused
          @state = :pausing
          @timers[:run].each do |timer|
            timer.cancel
          end
          @timers[:run].clear
          @tessen.stop if @tessen
          unsubscribe
          relinquish_tasks
          @state = :paused
        end
      end
# Pause the Sensu server process, unless it is being paused or
# has already been paused. The process/daemon `@state` is first
# set to `:pausing`, to indicate that it's in progress. All run
# timers are cancelled, their references are cleared, and Tessen
# is stopped. The Sensu server will unsubscribe from all
# transport subscriptions, relinquish any Sensu server tasks,
# then set the process/daemon `@state` to `:paused`.
Pause the Sensu server process, unless it is being paused or
has already been paused. The process/daemon `@state` is first
set to `:pausing`, to indicate that it's in progress. All run
timers are cancelled, their references are cleared, and Tessen
is stopped. The Sensu server will unsubscribe from all
transport subscriptions, relinquish any Sensu server tasks,
then set the process/daemon `@state` to `:paused`.
Pause the Sensu server process unless it is being paused or has already been paused . The process / daemon ` @state ` is first set to ` : pausing ` to indicate that it ' s in progress . All run timers are cancelled their references are cleared and Tessen is stopped . The Sensu server will unsubscribe from all transport subscriptions relinquish any Sensu server tasks then set the process / daemon ` @state ` to ` : paused ` .
def pause
        unless @state == :pausing || @state == :paused
          @state = :pausing
          @timers[:run].each do |timer|
            timer.cancel
          end
          @timers[:run].clear
          @tessen.stop if @tessen
          unsubscribe
          relinquish_tasks
          @state = :paused
        end
      end
def pause unless @state == :pausing || @state == :paused @state = :pausing @timers [ :run ] . each do | timer | timer . cancel end @timers [ :run ] . clear @tessen . stop if @tessen unsubscribe relinquish_tasks @state = :paused end end
Pause the Sensu server process, unless it is being paused or
has already been paused.
Pause the Sensu server process unless it is being paused or has already been paused .