Method: WatcherAction::KillProcess#initialize

Defined in:
lib/watcher_action/kill_process.rb

#initialize(config) ⇒ KillProcess

Returns a new instance of KillProcess.



20
21
22
23
24
25
# File 'lib/watcher_action/kill_process.rb', line 20

def initialize(config)
  @pidfile = config.get_value(:pidfile, false)
  @signals = config.get_list(:signal, 'KILL')
  @wait = config.get_value(:wait, 5).to_i
  @restart_time = config.get_value(:restart_time, 120).to_i
end