Be aware that mongo packages include ulimit and other settings in their startup script-fu (init or systemd). That might also be a good place for customization. https://github.com/mongodb/mongo/blob/master/rpm/init.d-mongod#L58 https://github.com/mongodb/mongo/blob/master/rpm/mongod.service