[SERVER-1654] dbpath and logpath options in /etc/mongodb.conf are ignored in the Ubuntu Created: 22/Aug/10 Updated: 12/Jul/16 Resolved: 02/Aug/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Packaging |
| Affects Version/s: | 1.6.1 |
| Fix Version/s: | 2.2.0-rc1 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Tsz Ming Wong | Assignee: | Michael A. Fiedler |
| Resolution: | Done | Votes: | 0 |
| Labels: | initscript | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Minor Change | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Even I changed the dbpath and logpath in /etc/mongodb.conf, they are ignored as these two values are hard coded in the init script (/etc/init.d/mongodb)
Other options are okay. A simple fix would be reorder the line 2 and line 3 in the above commands. |
| Comments |
| Comment by auto [ 02/Aug/12 ] |
|
Author: {u'date': u'2012-08-02T10:52:47-07:00', u'email': u'miketheman@gmail.com', u'name': u'Mike Fiedler'}Message: |
| Comment by Mendeley sysadmin [ 21/Dec/10 ] |
|
in addition the script itself is buggy – although it claims that setting defaults in /etc/default/mongodb should work, the name of the logfile is in fact derived before this file is sourced, so LOGDIR in defaults/mongodb has no effect patch: — mongodb 2010-09-16 15:15:06.000000000 +0000
+LOGFILE=$LOGDIR/$NAME.log # Server logfile |