[SERVER-6900] Windows Service: --install output should go to the console, not the log file Created: 30/Aug/12  Updated: 06/Feb/23  Resolved: 06/Feb/23

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Tad Marshall Assignee: [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
Resolution: Won't Do Votes: 1
Labels: WIndows, platforms-re-triaged, sdp-backlog-purge
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows, installing mongod.exe or mongos.exe as a Windows Service


Issue Links:
Duplicate
is duplicated by SERVER-10936 Service install error should be print... Closed
Related
related to SERVER-9172 Command line parameters --help and --... Closed
related to SERVER-7818 With 'logpath' set in mongodb.conf, e... Closed
related to SERVER-8510 Move command line parsing into MONGO_... Closed
Assigned Teams:
Server Development Platform
Participants:

 Description   

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.



 Comments   
Comment by Iryna Zhuravlova [ 16/Nov/22 ]

After a careful backlog refinement, the team decided to close this ticket because of its low priority and limited resource capacity. If you believe that this ticket requires additional attention from the team and should be re-opened, feel free to change the status to "Needs Scheduling" and ping me or @alexander.neben

Generated at Thu Feb 08 03:13:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.