Bug 1022476
Summary: | mongodb init script does not respect sysconfig options | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora EPEL | Reporter: | Georgi Georgiev <georgi.georgiev> | ||||||
Component: | mongodb | Assignee: | Nathaniel McCallum <nathaniel> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | el6 | CC: | admiller, bretm, databases-maint, johan.o.hedin, jpacner, matthias, nathaniel, tdawson | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2014-02-10 09:28:53 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Created attachment 815339 [details]
0002-f-etc-mongodb.conf-is-set-in-the-sysconf-file.patch
A second patch to clean up the init script. The sample config may otherwise confuse people that it is possible to override the "-f" setting.
Note that the current 2.4.6-3.el6 seems to be broken after a fresh install : [...] Installed: mongodb-server.x86_64 0:2.4.6-3.el6 Complete! [root@rs01 ~]# service mongod start Starting mongod: [ OK ] [root@rs01 ~]# service mongod status mongod dead but subsys locked [root@rs01 ~]# tail /var/log/mongodb/mongodb.log error command line: multiple_occurrences use --help for help The "multiple_occurrences" message is about command-line options being repeated. The problem here is that "--quiet" is present hardcoded in the init script *and* inside the default sysconfig file. Removing it from the sysconfig file fixes the problem. mongodb-2.4.6-5.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mongodb-2.4.6-5.el6 mongodb-2.4.6-5.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report. |
Created attachment 815338 [details] 0001-init-script-should-pick-up-the-options-from-the-sysc.patch Description of problem: Version-Release number of selected component (if applicable): mongodb-2.4.6-1.el6.x86_64 How reproducible: Every time Steps to Reproduce: 1. set "OPTIONS='--setParameter enableLocalhostAuthBypass=0'" in /etc/sysconfig/mongod 2. service restart mongod Actual results: The parameter is not picked up Expected results: The parameter is picked up Additional info: The code which is supposed to pick up the settings is sourcing the sysconfig *after* trying to read the variable. Also, the variable name in the sample sysconfig is not matching what the init script expects.