# File lib/main/daemon.rb, line 338 def pid! open(@pid_file, 'w+') do |fd| fd.puts(Process.pid) end at_exit{ FileUtils.rm_f(@pid_file) } end