[SERVER-2456] return config file options in getCmdLineOpts Created: 01/Feb/11  Updated: 12/Jul/16  Resolved: 29/Jul/11

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

Type: Improvement Priority: Minor - P4
Reporter: Scott Hernandez (Inactive) Assignee: Matt Dannenberg
Resolution: Done Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Return another element with the config file options in addition to the direct command line options.

> db.runCommand("getCmdLineOpts")
{
"argv" : [
"/usr/bin/mongos",
"--logpath",
"/var/log/mongodb/mongos.log",
"--fork",
"--config",
"/etc/mongos.conf"
],
"/etc/mongos.conf" : [
....
]
"ok" : 1
}



 Comments   
Comment by Matt Dannenberg [ 29/Jul/11 ]

getCmdLineOpts now returns an array "argv" containing the arguments passed to mongod and an object "parsed" with key value pairs of the flags by name and the value to which they were set

Comment by Swen Thümmler [ 02/Feb/11 ]

The options from config file should be the options effective at startup time (config file could have been changed in between)

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