[SERVER-3313] mongod doesn't load automatically the default config file Created: 22/Jun/11  Updated: 29/Aug/11  Resolved: 22/Jun/11

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: 1.8.2
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Maurizio De Santis Assignee: Unassigned
Resolution: Done Votes: 0
Labels: configserver
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux Mint 11 Katya x64


Operating System: Linux
Participants:

 Description   

mongod doesn't load automatically the default config file; if I run

mongod --repair

it prints

Wed Jun 22 17:33:08 [initandlisten] MongoDB starting : pid=3878 port=27017 dbpath=/data/db/ 64-bit

when in /etc/mongodb.conf I have

dbpath=/var/lib/mongodb

While, if I run

mongod -f /etc/mongodb.conf

the daemon starts correctly and in /var/log/mongodb/mongodb.log I have:

Wed Jun 22 17:37:03 [initandlisten] MongoDB starting : pid=3905 port=27017 dbpath=/var/lib/mongodb 64-bit



 Comments   
Comment by Maurizio De Santis [ 22/Jun/11 ]

I finally found the problem: it involves a fake /sbin/start-stop-daemon ; the real executable is /sbin/start-stop-daemon.REAL , and so I resolved changing the line that starts the daemon in /etc/init/mongodb.conf

[...] exec start-stop-daemon [...]

to

[...] exec start-stop-daemon.REAL [...]

I don't know the origin of this "fake" start-stop-daemon, but I think it is linked to Mint, at this point.

Comment by Scott Hernandez (Inactive) [ 22/Jun/11 ]

mongod never loads a default file. It is just the startup script which does that. You must always specify the file if you are starting it manually, and not through the init script/system.

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