[SERVER-7531] mongod doesn't start with "-f" option: "error command line: multiple occurrences", but starts with "--config" option Created: 01/Nov/12  Updated: 11/Jul/16  Resolved: 19/Nov/13

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

Type: Bug Priority: Major - P3
Reporter: Mikhail Mamrouski Assignee: Shaun Verch
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS X 10.8.2 (12C60), Kernel Version: Darwin 12.2.0


Issue Links:
Related
related to SERVER-8510 Move command line parsing into MONGO_... Closed
Operating System: OS X
Participants:

 Description   

"mongod -f /tmp/mongo-opt":
"error command line: multiple occurrences
use --help for help"

but "mongod --config /tmp/mongo-opt" works ok.

/tmp/mongo-opt contains one line: port=1089



 Comments   
Comment by Shaun Verch [ 19/Nov/13 ]

This worked for me on 2.2.3 and on 2.5.4 on Mac OS 10.8.5. I'm going to close this for now, but anyone who has a reproducible test case can reopen it.

Gleb, if you are still watching this ticket, could you attach your config file and the exact command line invocation you used to reproduce the issue? Feel free to reopen if it's still causing problems.

Comment by Gleb Smirnov [ 16/Feb/13 ]

Reproduced on Mac OS 10.8.2 (Darwin Kernel Version 12.2.0)

db version v2.2.3, pdfile version 4.5
Sat Feb 16 14:13:29 git version: f570771a5d8a3846eb7586eaffcf4c2f4a96bf08

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