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

Using single hyphen for install parameter will install un-startable Windows service

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.2
    • Affects Version/s: 1.6.1, 1.6.3
    • Component/s: Admin
    • Labels:
      None
    • Environment:
      Windows 2008 Server R2
    • Windows

      When installing MongoDB as a Windows service with a single hyphen before the "install" parameter, the Windows service will be created. However, when attempting to start the service, the service will fail to start. Alternatively, if you install using two hyphens before the "install" parameter, the service will start just fine.

      For example, this will create a Windows service that cannot be started:
      > "C:\Program Files\MongoDB\bin\mongod.exe" -install --logpath "C:\MongoLog.txt"

      This will create a Windows service that CAN be started (notice the two hyphens before "install"):
      > "C:\Program Files\MongoDB\bin\mongod.exe" --install --logpath "C:\MongoLog.txt"

            Assignee:
            tad Tad Marshall
            Reporter:
            b1g0af Matt Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: