diff options
author | gebele <gebele@in-silico.ch> | 2016-05-12 15:35:03 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2016-05-12 15:35:03 +0000 |
commit | 80cdde4c5cd03829518772e71b0bee4133afe622 (patch) | |
tree | 2ea8bc5ba4f17b249f575ae93eac3aee02bd4e1d /bin/lazar-start.sh | |
parent | 171d6e675a0e1c209340d2988e3a39d06999d18c (diff) |
bumped version
Diffstat (limited to 'bin/lazar-start.sh')
-rwxr-xr-x | bin/lazar-start.sh | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/bin/lazar-start.sh b/bin/lazar-start.sh index b1ea61c..72facbb 100755 --- a/bin/lazar-start.sh +++ b/bin/lazar-start.sh @@ -1,20 +1,7 @@ #!/bin/bash -#R CMD Rserve -#sudo mongod -#unicorn -p 8088 -E production +lazar-stop +sudo mongod & +R CMD Rserve +unicorn -c unicorn.rb -E production -D -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 +exit 0 |