Revert change from ps ax to pgrep, pgrep isn't on every computer

This commit is contained in:
Raphael 2010-10-19 10:29:23 -07:00
parent 2893c3766b
commit adb559155a

View file

@ -33,7 +33,7 @@ if [ -n "$services" ]; then
fi
# Check if Mongo is running
if ! pgrep mongod >/dev/null
if ! ps ax | grep -v grep | grep mongod >/dev/null
then
echo "Error: Mongod not started. Exiting" >&2
exit 64