[SERVER-6393] mongos --reinstall option does not work Created: 11/Jul/12  Updated: 11/Sep/14  Resolved: 11/Aug/14

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 2.2.0-rc0
Fix Version/s: 2.7.5

Type: Bug Priority: Minor - P4
Reporter: Sridhar Nanjundeswaran Assignee: Mark Benvenuto
Resolution: Done Votes: 0
Labels: cap-ticket-needed
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 7. 2008+ build from 7/9/2012


Issue Links:
Depends
Tested
Operating System: ALL
Sprint: Server 2.7.5
Participants:

 Description   

Install mongos as a service using mongos.exe --install --logpath<> --configdb <>
Now create a config file mongos.conf
configdb = localhost:30000
logpath = c:\data\mongos.log
serviceDisplayName = Modified Service Name
serviceDescription = Modified Service Description

try to reinstall service with mongos.exe --reinstall --config mongos.conf

This fails with

Tue Jul 10 23:50:31 warning: running with 1 config server should be done only for testing purposes and is not recommended for production
Tue Jul 10 23:50:31 Trying to remove Windows service 'MongoS'
Tue Jul 10 23:50:31 Service 'MongoS' removed
Tue Jul 10 23:50:31 Trying to install Windows service 'MongoS'
Tue Jul 10 23:50:31 Error creating service: The name is already in use as either a service name or a service display name. (1078)


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