jsnow. updating script permissions
[oweals/finalsclub.git] / util / reboot-restart.sh
1 #!/bin/bash
2
3 export PATH="/usr/local/bin:$PATH"
4
5 ## this script assumes it is running as root
6 rm /data/db/mongod.lock
7 /usr/local/bin/mongod -v --rest --replSet finalsclubset &> /var/log/mongod.log &
8
9 ## optional, if arbiter db is running on this machine
10 ## rm /data/arbiterdb/mongod.lock
11 ## /usr/local/bin/mongod -v --dbpath /data/arbiterdb --port 27021 --rest --replSet finalsclubset &> /var/log/mongod-arbiter.log &
12
13 pushd .
14 cd /home/ec2-user/fc
15
16 ## start the node apps
17 ./restart
18
19 ## run the EPL monitor 
20 ./util/start-fc-epl-monitor.sh &
21
22 popd
23
24