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

Init script in Red Hat fails if using YAML inline syntax

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 2.6.6
    • Fix Version/s: 2.8.0-rc5
    • Component/s: Packaging
    • Labels:
    • Environment:
      Centos 7
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      Linux
    • Steps To Reproduce:
      Hide

      1) Install Mongodb 2.6 on centos
      2) add the line in /etc/mongod.conf
      processManagement.pidFilePath: /var/run/mongod/mongod.pid
      3) Make sure /var/run/mongod does not exist ( it's removed at each shutdown )
      4) /etc/init.d/mongod start should fail with error: "directory /var/run/mongod does not exist"

      Show
      1) Install Mongodb 2.6 on centos 2) add the line in /etc/mongod.conf processManagement.pidFilePath: /var/run/mongod/mongod.pid 3) Make sure /var/run/mongod does not exist ( it's removed at each shutdown ) 4) /etc/init.d/mongod start should fail with error: "directory /var/run/mongod does not exist"

      Description

      When using YAML inline syntax, for example:
      processManagement.pidFilePath: /var/run/mongod/mongod.pid
      instead of:
      processManagement:
      pidFilePath: /var/run/mongod/mongod.pid
      the init script is not able to pick up the correct DBPATH and PIDFILEPATH and fails if directory is not present.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ernie.hershey Ernie Hershey
              Reporter:
              cammellos andrea maria piana
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: