diff options
Diffstat (limited to 'bin/lazar-start.sh')
-rwxr-xr-x | bin/lazar-start.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/bin/lazar-start.sh b/bin/lazar-start.sh new file mode 100755 index 0000000..b1ea61c --- /dev/null +++ b/bin/lazar-start.sh @@ -0,0 +1,20 @@ +#!/bin/bash +#R CMD Rserve +#sudo mongod +#unicorn -p 8088 -E production + +RETVAL=0 + +start() { + grep_mongo=`ps aux | grep -v grep | grep mongod` + if [ ${#grep_mongo} -gt 0 ] + then + echo "MongoDB is already running." + else + echo "Start MongoDB." + `sudo mongod` + RETVAL=$? + fi +} + +exit $RETVAL |