Merge "Append /usr/sbin:/sbin to the path for searching mongodb"

This commit is contained in:
Jenkins 2013-09-03 11:56:06 +00:00 committed by Gerrit Code Review
commit 60ce09b062

View File

@ -25,6 +25,7 @@ fi
MONGO_DATA=`mktemp -d /tmp/CEILO-MONGODB-XXXXX`
trap "clean_exit" EXIT
mkfifo ${MONGO_DATA}/out
export PATH=${PATH:+$PATH:}/sbin:/usr/sbin
mongod --maxConns 128 --nojournal --noprealloc --smallfiles --quiet --noauth --port 29000 --dbpath "${MONGO_DATA}" --bind_ip localhost &>${MONGO_DATA}/out &
MONGO_PID=$!
# Wait for Mongo to start listening to connections