[SERVER-16585] Error parsing INI config file: unknown option fork Created: 18/Dec/14  Updated: 24/Jan/15  Resolved: 31/Dec/14

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

Type: Bug Priority: Minor - P4
Reporter: luyang Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

To start my mongod with the command as :
C:\mongodb\bin>mongod --config c:\mongodb\etc\mongodb.conf
[mongodb.conf]
-------------------------------------------------------------
fork = true
bind_ip = 127.0.0.1
port = 27017
quiet = true
dbpath = c:\mongodb\data
logpath = C:\mongodb\log\mongod.log
logappend = true
journal = true
-------------------------------------------------------------
Error:
Error parsing INI config file: unknown opt
try 'mongod --help' for more information

If I delete [fork = true] and command can be run correctly.

I have read the document from here and I want to ask that if [fork] is not being used in the Mongod ?

http://docs.mongodb.org/manual/administration/configuration/



 Comments   
Comment by Daniel Pasette (Inactive) [ 31/Dec/14 ]

Windows doesn't support fork. For the equivalent, MongoDB supports starting as a windows service. See the documentation here:
http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/#configure-a-windows-service-for-mongodb

Comment by luyang [ 19/Dec/14 ]

My version is :
-------------------------------------------------------------------------------------------------------------------------------------------------
C:\mongodb\bin>mongod --version
db version v2.6.5
2014-12-19T09:46:44.429+0900 git version: e99d4fcb4279c0279796f237aa92fe3b64560bf6
-------------------------------------------------------------------------------------------------------------------------------------------------
The error information is :
-------------------------------------------------------------------------------------------------------------------------------------------------
C:\mongodb\bin>mongod --config C:\mongodb\etc\mongodb.conf
Error parsing INI config file: unknown option fork
try 'mongod --help' for more information
-------------------------------------------------------------------------------------------------------------------------------------------------
And, my OS is Windows 7. I think if in Linux it will be ok, but in Windows the system can not create a daemon thread service directly ?
Sorry, I am not very familiar with that.

Comment by Ramon Fernandez Marina [ 18/Dec/14 ]

What version of MongoDB are you seeing this behavior on?

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