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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.4.1
    • Fix Version/s: 2.5.3
    • Component/s: Packaging
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      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

            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: