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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.3
    • Affects Version/s: 2.4.1
    • Component/s: Packaging
    • Fully Compatible
    • Linux

      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

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

              Created:
              Updated:
              Resolved: