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

dbpath not being read from mongodb.conf file when --dbpath is used

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      ubuntu 11.10
    • Fully Compatible
    • ALL

      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!

            Assignee:
            Unassigned Unassigned
            Reporter:
            jperry Jay Perry
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: