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.
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.
Fixed in http://pkgs.fedoraproject.org/cgit/mongodb.git/commit/?h=el6&id=bbc6130339b5eb57a9a078ff65e47ec502d6ad67 .
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.