10 lines
No EOL
239 B
Bash
10 lines
No EOL
239 B
Bash
#!/bin/bash
|
|
|
|
# Check if the portfolio service is responsive
|
|
if ! curl -s http://localhost:3888 > /dev/null; then
|
|
echo "Portfolio site is down, restarting..."
|
|
pm2 restart portfolio
|
|
else
|
|
echo "Portfolio site is running properly"
|
|
fi
|
|
EOF |