I have setup a Mongodb replica set with 1 secondary node. When i execute on secondary
sudo mongod --replSet rs0 --dbpath /data --port 27017 --oplogSize 700
The primary and secondary nodes are linked and it works perfectly but the connection logs are running in open terminal. I would like to run the above task as background job. The option of -d doesn't seem to work here.