mongodb run in background code example Example: how to start mongod process in the background mongod --fork --logpath /var/log/mongod.log