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

Init script in Red Hat fails if using YAML inline syntax

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.8.0-rc5
    • Affects Version/s: 2.6.6
    • Component/s: Packaging
    • Labels:
    • Environment:
      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"

      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.

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

              Created:
              Updated:
              Resolved: