# File lib/nanite/pid_file.rb, line 8 def check if pid = read_pid if process_running? pid raise "#{@pid_file} already exists (pid: #{pid})" else Log.info "removing stale pid file: #{@pid_file}" remove end end end