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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • ubuntu 11.10
    • Fully Compatible
    • ALL

    Description

      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!

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: