b7d6f0ef64b10f05b2e667853425a0de5f17684f
[oweals/finalsclub.git] / util / fc_monitor_epl_cron.sh
1 #!/bin/bash
2
3 ## cron example 
4 ## ## this script checks if EPL is up and running. if not, it sends an alert email
5 5,20,35,50 * * * * /home/ec2-user/fc/util/fc_monitor_epl_cron.sh > /home/ec2-user/fc/util/fc_monitor_epl_cron.log.txt
6
7
8 ## save the current working dir
9 pushd .
10 cd ~/fc/fcbackups
11
12 ## this scripts expects these vars to be set
13 ## export AWS_ACCESS_KEY_ID=<YOUR_AWS_ACCESS_KEY_ID>
14 ## export AWS_SECRET_ACCESS_KEY=<YOUR_AWS_SECRET_ACCESS_KEY>
15 if test -e .fcbackup.env ; then
16         source .fcbackup.env
17 fi
18
19 cd ~/fc
20 node fc_monitor_epl.js
21 popd
22