Skip to content

Commit

Permalink
Update validate_service.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ddcrpf authored Nov 13, 2024
1 parent b94645d commit f27c5ff
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions scripts/validate_service.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#!/bin/bash
echo "Validating Flask application..."
pgrep -f app.py > /dev/null
if [ $? -ne 0 ]; then
set -ex

echo "Validating Flask application on Amazon Linux..."

# Check if the Flask application process is running
if pgrep -f app.py > /dev/null; then
echo "Flask application is running."
else
echo "Flask application is not running."
exit 1
else
echo "Flask application is running."
fi

0 comments on commit f27c5ff

Please sign in to comment.