[SERVER-16720] Init script in Red Hat fails if using YAML inline syntax Created: 05/Jan/15 Updated: 15/Apr/15 Resolved: 05/Jan/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Packaging |
| Affects Version/s: | 2.6.6 |
| Fix Version/s: | 2.8.0-rc5 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | andrea maria piana | Assignee: | Ernie Hershey |
| Resolution: | Done | Votes: | 0 |
| Labels: | pull-request | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Centos 7 |
||
| Issue Links: |
|
||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||
| Operating System: | Linux | ||||||||||||||||||||||||
| Steps To Reproduce: | 1) Install Mongodb 2.6 on centos |
||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Description |
|
When using YAML inline syntax, for example: |
| Comments |
| Comment by Ernie Hershey [ 20/Feb/15 ] |
|
Good catch - I created |
| Comment by Kevin Pankonen [ 20/Feb/15 ] |
|
The init script is still broken if you're quoting the paths (which is shown in the configuration documentation http://docs.mongodb.org/manual/reference/configuration-options/) Here's the config Here's the useful part of script: ' /etc/mongod.conf PIDFILEPATH gets set to "/var/run/mongod.pid" (includes the quotes), dirname includes the first " |
| Comment by Githook User [ 05/Jan/15 ] |
|
Author: {u'username': u'cammellos', u'name': u'Andrea Maria Piana', u'email': u'a.piana@77agency.com'}Message: Closes #899 Signed-off-by: Benety Goh <benety@mongodb.com> |
| Comment by andrea maria piana [ 05/Jan/15 ] |
|
I have updated the init file to address this scenario and opened a pull request https://github.com/mongodb/mongo/pull/899 |