[SERVER-2267] RPM init script hard codes path of pid file which will change if user specifies new data directory Created: 21/Dec/10 Updated: 12/Jul/16 Resolved: 18/Feb/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Build |
| Affects Version/s: | 1.6.5 |
| Fix Version/s: | 2.1.1 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Michael Spiegle | Assignee: | Michael A. Fiedler |
| Resolution: | Done | Votes: | 3 |
| Labels: | initscript, packaging | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Redhat Enterprise 5.4 |
||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
The init script supplied does not stop the server in some environments because killproc() in the stop() section hard-codes the path of the PID file. If the user specifies a new 'dbpath' in /etc/mongod.conf, then the PID file will be placed there instead, and killproc won't find it. |
| Comments |
| Comment by auto [ 18/Feb/12 ] |
|
Author: {u'login': u'miketheman', u'name': u'Mike Fiedler', u'email': u'miketheman@gmail.com'}Message: Merge pull request #180 from miketheman/ updating rpm changelog for |
| Comment by auto [ 18/Feb/12 ] |
|
Author: {u'login': u'miketheman', u'name': u'Mike Fiedler', u'email': u'miketheman@gmail.com'}Message: Merge pull request #180 from miketheman/ updating rpm changelog for |
| Comment by auto [ 18/Feb/12 ] |
|
Author: {u'login': u'miketheman', u'name': u'Mike Fiedler', u'email': u'miketheman@gmail.com'}Message: updating rpm changelog for |
| Comment by Michael A. Fiedler [ 18/Feb/12 ] |
|
This has been resolved in the current branch of mongodb 2.1.x. |
| Comment by auto [ 18/Feb/12 ] |
|
Author: {u'login': u'miketheman', u'name': u'Mike Fiedler', u'email': u'miketheman@gmail.com'}Message: Merge pull request #179 from miketheman/
|
| Comment by auto [ 18/Feb/12 ] |
|
Author: {u'login': u'miketheman', u'name': u'Mike Fiedler', u'email': u'miketheman@gmail.com'}Message: Merge pull request #179 from miketheman/
|
| Comment by auto [ 18/Feb/12 ] |
|
Author: {u'login': u'miketheman', u'name': u'Mike Fiedler', u'email': u'miketheman@gmail.com'}Message: Merge branch 'master' of git://github.com/mongodb/mongo into |
| Comment by Puneet Kandhari [ 23/Jan/12 ] |
|
Will this be fixed as part of 2.* releases ? |
| Comment by Tilo S [ 02/Apr/11 ] |
|
NOTE: I observed this problem on Fedora 13 and Fedora 14 |
| Comment by Tilo S [ 02/Apr/11 ] |
|
here's the BUGFIX for this: in the top section of the script, add these two lines: MONGO_DBPATH=`/bin/grep '^dbpath' /etc/mongod.conf | /bin/cut -d'=' -f2` # grep for the dbpath in the config file and replace the line with the killproc statement as follows:
this should do the trick! works for me.. |