Module: UnicornKiller::Kill

Included in:
MaxRequests, Oom
Defined in:
lib/unicorn_killer.rb

Instance Method Summary collapse

Instance Method Details

#quitObject


8
9
10
11
12
# File 'lib/unicorn_killer.rb', line 8

def quit
  sec = (Time.now - @process_start).to_i
  warn "#{self.class} send SIGQUIT (pid: #{Process.pid})\talive: #{sec} sec"
  Process.kill :QUIT, Process.pid 
end