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

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 1.8.3
    • Component/s: None
    • None
    • Environment:
      Windows 7 64-bit
    • Windows

      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
      ^

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

              Created:
              Updated:
              Resolved: