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

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • 2.6.6
    • 2.8.0-rc5
    • Packaging
    • Centos 7
    • Fully Compatible
    • Linux
    • 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

              ernie.hershey@mongodb.com Ernie Hershey
              cammellos andrea maria piana
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: