lib/util/signal_handler.rb
# Register Handlers which would have this Cron Instance interuppt, kill etc ..
#
# * Author: Puneet
# * Date: 10/10/2017
# * Reviewed By: Sunil
#
Register Handlers which would have this Cron Instance interuppt, kill etc
Author: Puneet
Date: 10/10/2017
Reviewed By: Sunil
Register Handlers which would have this Cron Instance interuppt kill etc Author : Puneet Date : 10 / 10 / 2017 Reviewed By : Sunil
def register_signal_handlers
      puts "*** Adding handler register_signal_handlers ***"
      @continue_running = true
      ['INT', 'QUIT', 'TERM'].each do |sig|
        Signal.trap(sig) { puts "\n\n\nTrapped - #{sig} "; @continue_running = false }
      end
    end
def register_signal_handlers puts "*** Adding handler register_signal_handlers ***" @continue_running = true [ 'INT' , 'QUIT' , 'TERM' ] . each do | sig | Signal . trap ( sig ) { puts "\n\n\nTrapped - #{sig} " ; @continue_running = false } end end
Register Handlers which would have this Cron Instance interuppt, kill etc ..
Register Handlers which would have this Cron Instance interuppt kill etc ..