Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
1.6.1
-
Minor Change
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)
DAEMONUSER=${DAEMONUSER:-mongodb}
|
DAEMON_OPTS=${DAEMON_OPTS:-"--dbpath $DATA --logpath $LOGFILE run"}
|
DAEMON_OPTS="$DAEMON_OPTS --config $CONF"
|
Other options are okay.
A simple fix would be reorder the line 2 and line 3 in the above commands.
Attachments
Issue Links
- is duplicated by
-
SERVER-6855 debian mongodb package ignores some important parts of /etc/mongodb.conf
-
- Closed
-
-
SERVER-6066 Init-script ignores mongodb.conf dbpath and logpath settings
-
- Closed
-
-
SERVER-7303 dbpath not being read from mongodb.conf file when --dbpath is used
-
- Closed
-