Method: Main::Daemon#pid!

Defined in:
lib/main/daemon.rb

#pid!Object



338
339
340
341
342
343
# 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