Alysha Creelman
commited on
Create check_health.sh
Browse files- 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
|