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

rpm/init.d-mongod uses dbpath for pidfile location

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.5.3
    • 2.4.1
    • Packaging
    • Fully Compatible
    • Linux

    Description

      Currently the init script in the RPM package uses the following for its path to the PIDFILE.

      PIDFILE=`awk -F= '/^dbpath\s=\s/{print $2}' "$CONFIGFILE"`

      This means that the PIDFILE variable would pick up the dbpath variable rather than pidfilepath. This won't prevent the start/stop of the server from occurring, nor the creation of the PIDFILE by the MongoD process but does mean that init would not use the location of PIDFILE when stopping the process.

      In addition to this both the variables dont allow for the optional spaces between the equals sign and the key/value.

      Pull request for this was made by Alexis Midon: https://github.com/mongodb/mongo/pull/410

      Attachments

        Activity

          People

            ernie.hershey@mongodb.com Ernie Hershey
            david.hows David Hows
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: