Added check to see if Mongod is running
This commit is contained in:
parent
182c6228f3
commit
d1c7559c29
1 changed files with 11 additions and 3 deletions
|
|
@ -1,5 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
mkdir -p -v log/thin/
|
# Check if Mongo is running
|
||||||
bundle exec ruby ./script/websocket_server.rb&
|
|
||||||
bundle exec thin start $@
|
if ! ps ax | grep -v grep | grep mongod >/dev/null
|
||||||
|
then
|
||||||
|
echo "Mongod not started"
|
||||||
|
else
|
||||||
|
mkdir -p -v log/thin/
|
||||||
|
bundle exec ruby ./script/websocket_server.rb&
|
||||||
|
bundle exec thin start $@
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue