[SERVER-14679] (CentOS 7/RHEL 7) init.d script should create directory for pid file if it is missing Created: 25/Jul/14 Updated: 29/Dec/15 Resolved: 31/Jul/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Packaging |
| Affects Version/s: | 2.6.3, 2.7.0, 2.7.1, 2.7.2, 2.7.3 |
| Fix Version/s: | 2.6.5, 2.7.5 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Markus Mahlberg | Assignee: | Benety Goh |
| Resolution: | Done | Votes: | 0 |
| Labels: | pull-request | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
CentOS 7, RHEL 7 |
||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||||||||||
| Operating System: | Linux | ||||||||||||||||||||||||||||||||||||
| Backport Completed: | |||||||||||||||||||||||||||||||||||||
| Steps To Reproduce: |
|
||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||
| Description |
|
The initscript of the RPM packages does not check wether the directory the pidfile is written to exists. This makes it impossible to start mongod via the initscript on CentOS 7 at last, and presumably on RHEL 7, too, as the directory /var/run/mongod does not exist on system startup. The contents of /var/run seem to be deleted over a reboot, so creating the directory manually or via RPM does not help. The file mongo/rpm/init.d-mongod needs to be updated accordingly. I have already done that, a pull request will follow. |
| Comments |
| Comment by Tamas Føldesi [ 24/Sep/14 ] |
|
Had the same issue on Oracle Linux Server release 6.3 using mongoDb 2.6.3 - the commit fixed it. |
| Comment by Githook User [ 17/Sep/14 ] |
|
Author: {u'username': u'mwmahlberg', u'name': u'Markus W. Mahlberg', u'email': u'markus.mahlberg@me.com'}Message: Startup scripts not fit for CentOS 7 / RHEL 7 Default location for pid file is under /var/run/mongodb. /var/run can be mounted Closes #723 Signed-off-by: Benety Goh <benety@mongodb.com> Conflicts: |
| Comment by Githook User [ 31/Jul/14 ] |
|
Author: {u'username': u'mwmahlberg', u'name': u'Markus W. Mahlberg', u'email': u'markus.mahlberg@me.com'}Message: Startup scripts not fit for CentOS 7 / RHEL 7 Default location for pid file is under /var/run/mongodb. /var/run can be mounted Closes #723 Signed-off-by: Benety Goh <benety@mongodb.com> |