2/write sample config file

All folders (dbpaths provided to the mongod daemon) should be created beforehand, otherwise mongo will return an ERROR.