Totally agreed. @akjags here's an example of checking whether or not mongo is running on the correct port. I think it makes more logical sense to include this code in this pull request, but if you disagree I can put it in elsewhere. Ideally it would also check which port mongo is running on if it's not the expected port and return a sensible error message in that case, but if someone is running mongo on a non-standard port they probably know enough to realize it's a potential pain point.

#! /bin/sh

NETSTAT=`netstat -an|grep mongodb`
MONGO_PORT="27017"
if [[ "${NETSTAT#*$MONGO_PORT}" != "$NETSTAT" ]]; then
	echo Success
else
	echo Failure
fi