# File lib/daemons/pidfile.rb, line 104 def pid begin File.open(filename) {|f| return f.gets.to_i } rescue ::Exception return nil end end