Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1654

dbpath and logpath options in /etc/mongodb.conf are ignored in the Ubuntu

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.0-rc1
    • Affects Version/s: 1.6.1
    • Component/s: Packaging
    • Minor Change

      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.

            Assignee:
            miketheman Michael A. Fiedler
            Reporter:
            tszming Tsz Ming Wong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: