|
The RHEL mongod init.d script will fail to shut down mongod when the value of processManagement.pidFilePath is set to a quoted string. This occurs because the quote characters are interpreted by the script as part of the filename and no match is found for the pid file. For example, stopping/restarting mongod fails with the following format:
processManagement:
|
pidFilePath: "/var/run/mongodb/mongod.pid"
|
and succeeds when the quotes are removed:
processManagement:
|
pidFilePath: /var/run/mongodb/mongod.pid
|
YAML formatted strings can be represented with single quotes, double quotes or no quotes when leading/trailing space truncation is not an issue. We should handle all cases in our init.d script.
|