Add upstart ulimit config & fix bug in replica_set