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

Windows Service: --install output should go to the console, not the log file

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Admin
    • Environment:
      Windows, installing mongod.exe or mongos.exe as a Windows Service
    • Server Development Platform

      If there is an error/failure when trying to install (or uninstall or reinstall) as a Windows service (using --install, --remove or --reinstall), you can't tell from the console where you typed the command because the error text went to the logfile (that you were required to specify on the command line). When you then can't start the service (because of the earlier, unseen, error) you need to look in the log file to find out what happened. This makes this feature harder to use than it needs to be.

      All text resulting from the attempt to install, remove or reinstall the service should go to the console; the --logpath setting needs to be copied to the registry to install the service, but it should not be used during the install itself.

            backlog-server-devplatform [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            tad Tad Marshall
            1 Vote for this issue
            4 Start watching this issue