Method: Thin::Daemonizable#pid

Defined in:
lib/thin/daemonizing.rb

#pidObject



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

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