pid= (Daemons::PidFile)

    # File lib/daemons/pidfile.rb, line 71
        def pid=(p)
          if multiple
            while File.exists?(filename) and @number < 1024
              @number += 1
            end

            if @number == 1024
              raise RuntimeException('cannot run more than 1024 instances of the application')
            end
          end

          File.open(filename, 'w') {|f|
            f.puts p   #Process.pid
          }
        end