Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-3976

Creating the service on Windows gets the path wrong if you don't use a drive letter

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • 1.8.3
    • None
    • None
    • Windows 7 64-bit
    • Windows

    Description

      This works:-

      "c:\mongodb\bin\mongod.exe" --config "c:\mongodb\bin\master.conf" --serviceName MongoMaster3 --serviceDisplayName MongoMaster3 --serviceDescription "Mongo Instance 1 - Master" --reinstall

      But this installs the service with a nonsense path:-

      "\mongodb\bin\mongod.exe" --config "c:\mongodb\bin\master.conf" --serviceName MongoMaster3 --serviceDisplayName MongoMaster3 --serviceDescription "Mongo Instance 1 - Master" --reinstall

      i.e. if you don't put the drive letter there it calculates the path incorrectly when it installs the Windows Service. Windows Services shows:-

      "C:\MongoDB\bin\\mongodb\bin\mongod.exe" --config c:\mongodb\bin\master.conf --service
      ^

      Attachments

        Activity

          People

            tad Tad Marshall
            ianmercer Ian Mercer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: