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

XMLWordPrintableJSON

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

      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:
              Michael A. Fiedler
              Reporter:
              Tsz Ming Wong
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: