Revert change from ps ax to pgrep, pgrep isn't on every computer
This commit is contained in:
parent
2893c3766b
commit
adb559155a
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue