new (Daemons::PidFile)

    # File lib/daemons/pidfile.rb, line 67
        def  initializeinitialize(dir, progname, multiple = false)
          @dir = File.expand_path(dir)
          @progname = progname
          @multiple = multiple
          @number = nil
          @number = 0 if multiple

          if multiple
            while File.exist?(filename) and @number < 1024
              @number += 1
            end

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