summaryrefslogtreecommitdiff
path: root/bin/lazar-start.sh
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2016-05-12 15:35:03 +0000
committergebele <gebele@in-silico.ch>2016-05-12 15:35:03 +0000
commit80cdde4c5cd03829518772e71b0bee4133afe622 (patch)
tree2ea8bc5ba4f17b249f575ae93eac3aee02bd4e1d /bin/lazar-start.sh
parent171d6e675a0e1c209340d2988e3a39d06999d18c (diff)
bumped version
Diffstat (limited to 'bin/lazar-start.sh')
-rwxr-xr-xbin/lazar-start.sh23
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