use bash as shell, so ulimit -u works properly on ubuntu 12.04 VM. Otherwise i get following error: 

STDERR: /etc/init.d/mongodb1: 48: ulimit: Illegal option -u