Method: Thin::Daemonizable::ClassMethods#kill

Defined in:
lib/thin/daemonizing.rb

#kill(pid_file, timeout = 60) ⇒ Object

Send a QUIT or INT (if timeout is 0) signal the process which PID is stored in pid_file. If the process is still running after timeout, KILL signal is sent.



96
97
98
99
100
101
102
# File 'lib/thin/daemonizing.rb', line 96

def kill(pid_file, timeout=60)
  if timeout == 0
    send_signal('INT', pid_file, timeout)
  else
    send_signal('QUIT', pid_file, timeout)
  end
end