I would use something like this to load the sysconfig, that way you can for example control the ulimit of all instances without changing one by one init script
so if one does not have a sysconfig for the current instance, he still inherit values from /etc/sysconfig/mongod, this should be put after sourcing /etc/rc.d/init.d/functions
so you can add ULIMIT=16000 to /etc/sysconfig/mongod and remove those variables from the init.d script.
if [ -f "$SYSCONFIG" ]; then
. "$SYSCONFIG"
elif [ -f /etc/sysconfig/mongod ]; then
. /etc/sysconfig/mongod
fi