Method: Thin::Daemonizable#pid

Defined in:
lib/thin/daemonizing.rb

#pidObject



34
35
36
# File 'lib/thin/daemonizing.rb', line 34

def pid
  File.exist?(pid_file) && !File.zero?(pid_file) ? open(pid_file).read.to_i : nil
end