summaryrefslogtreecommitdiff
path: root/bin/lazar-start.sh
diff options
context:
space:
mode:
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