# File lib/skynet/skynet_manager.rb, line 697
    def self.write_pid_file
      pidfile = Skynet::Config.pidfile_location
      info "Writing PIDFILE to #{pidfile}"
      open(pidfile, "w") {|f| f << Process.pid << "\n"}
      at_exit { File.unlink(pidfile) if read_pid_file == Process.pid }
    end