fc_monitor_epl_cron.sh 552 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. ## cron example
  3. ## ## this script checks if EPL is up and running. if not, it sends an alert email
  4. ## ## 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
  5. ## save the current working dir
  6. pushd .
  7. cd ~/fc/fcbackups
  8. ## this scripts expects these vars to be set
  9. ## export AWS_ACCESS_KEY_ID=<YOUR_AWS_ACCESS_KEY_ID>
  10. ## export AWS_SECRET_ACCESS_KEY=<YOUR_AWS_SECRET_ACCESS_KEY>
  11. if test -e .fcbackup.env ; then
  12. source .fcbackup.env
  13. fi
  14. cd ~/fc
  15. node fc_monitor_epl.js
  16. popd