anchor.diff:  	if ! replSet_initted; then
   		debug "Initialising ReplicaSet..."
   		mongocmd "rs.initiate()"
  +		sleep 2
  +		debug "ReplicaSet initiated!"
   	else
   		debug "Replica set already initiated."
   	fi
  
positive.code: 
  function replSet_initted()
  {
  	mongocmd "rs.status()" | grep -qv "no replset config has been received"
  }
  
  function init_replSet()
  
negative.code: function start()
  {
  	mkdir -p /storage/db
  	HOSTNAME=${HOSTNAME:-127.0.0.1}
  	me="$HOSTNAME:27017"
  
  	/opt/mongodb/bin/mongod <%= @cmd %> & 
  