[SERVER-7303] dbpath not being read from mongodb.conf file when --dbpath is used Created: 09/Oct/12 Updated: 15/Feb/13 Resolved: 09/Oct/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jay Perry | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
ubuntu 11.10 |
||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
Hi, I am setting the dbpath in the /etc/mongodb.conf file but it isn't being used because of the /etc/init.d/mongodb script. I had to create a /etc/default/mongodb file in order to override the data directory when I would have expected setting "dbpath" in the configuration file would have done this. I noticed this when checking the running mongo process and it said it was using /var/lib/mongodb as it's data directory even though I was setting "dbpath" in /etc/mongodb.conf. This seems like a bug or at the least a documentation problem. After setting the data directory in /etc/default/mongodb files were then being created in /data which is where I wanted them to go. Please investigate. Thanks in advance! |
| Comments |
| Comment by Ian Whalen (Inactive) [ 09/Oct/12 ] |
|
Jay, the 2.2.0 release notes at http://docs.mongodb.org/manual/release-notes/2.2/ represents all of the major changes made between the 2.0 branch and the 2.2 branch. You will also find a link at the bottom of that page to the list of every ticket closed for 2.2. |
| Comment by Jay Perry [ 09/Oct/12 ] |
|
Thanks Ian, I'll see if we can upgrade. Are the differences between 2.0.7 and 2.2.x documented any where? Thanks, |
| Comment by Ian Whalen (Inactive) [ 09/Oct/12 ] |
|
Jay, I believe this issue has already been resolved in the 2.2 branch with |
| Comment by Jay Perry [ 09/Oct/12 ] |
|
This is mongo 2.0.7. |