[root@rhos4-mongodb1 ~]# cat /etc/sysconfig/mongod OPTIONS="--quiet -f /etc/mongodb.conf" [root@rhos4-mongodb1 ~]# grep -i options /etc/init.d/mongod options="$MONGODB_OPTIONS -f /etc/mongodb.conf" daemon --pidfile=${pidfile} --user mongodb "$exec --quiet $options run >> $logfile 2>&1 &" as you can see, OPTIONS from mongod can never be applied to $options. Also please note that --quiet is harcoded when spawning the daemon.
Starting mongodb with 2.2.4-5 fails; the logs contain: error command line: multiple_occurrences use --help for help This is because the startup init script needs to be tweaked to not have "--quiet" since it's provided in $MONGODB_OPTIONS.
[root@rhos init.d]# mongod --quiet --quiet -f /etc/mongodb.conf run error command line: multiple_occurrences use --help for help
Created attachment 873217 [details] Tiny additional fix
[root@rhos mongodb]# cat /etc/sysconfig/mongod MONGODB_OPTIONS="--quiet -f /etc/mongodb.conf" [root@rhos mongodb]# service mongod start Starting mongod: [ OK ] [root@rhos mongodb]# ps auwwx | grep mongo | grep -v grep mongodb 14785 1.2 0.8 786604 34144 ? Sl 15:07 0:00 /usr/bin/mongod --quiet -f /etc/mongodb.conf run [root@rhos mongodb]# service mongod status mongod (pid 14785) is running... [root@rhos mongodb]# service mongod stop Stopping mongod: [ OK ] [root@rhos mongodb]# service mongod status mongod is stopped (change mongod) [root@rhos mongodb]# cat /etc/sysconfig/mongod MONGODB_OPTIONS="-f /etc/mongodb.conf" [root@rhos mongodb]# service mongod start Starting mongod: [ OK ] [root@rhos mongodb]# ps auwwx | grep mongo | grep -v grep mongodb 14974 1.1 0.8 786636 32564 ? Sl 15:10 0:00 /usr/bin/mongod -f /etc/mongodb.conf run [root@rhos mongodb]# service mongod status mongod (pid 14974) is running... [root@rhos mongodb]# service mongod stop Stopping mongod: [ OK ] [root@rhos mongodb]# service mongod status mongod is stopped I did not check upgrades.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-0334.html