# File lib/pidfile.rb, line 58 def pid return @pid unless @pid.nil? if self.pidfile_exists? @pid = open(self.pidpath, 'r').read.to_i else @pid = nil end end