update init scripts to check for mongo running via log