Alysha Creelman commited on
Commit
12fa8dd
·
unverified ·
1 Parent(s): 51c26e3

Create check_health.sh

Browse files
Files changed (1) hide show
  1. check_health.sh +6 -0
check_health.sh ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Check if "app.py" is running
4
+ if ! pgrep -f "app.py"; then
5
+ echo "Chatbot is down" | mail -s "Chatbot Down Alert" amcreelman@wpi.edu,eesojka@wpi.edu,jekimball@wpi.edu
6
+ fi