mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 12:36:23 -07:00
timeout 10 sec for apache2 status
This commit is contained in:
parent
9525acdd7f
commit
060dfee2bd
1 changed files with 3 additions and 3 deletions
|
@ -28,17 +28,17 @@ fi
|
|||
# Displaying proxy status
|
||||
if [ "$PROXY_SYSTEM" = 'nginx' ]; then
|
||||
echo "<h2>$PROXY_SYSTEM STATUS</h2>"| tr '[:lower:]' '[:upper:]'
|
||||
curl -fsSL --max-time 3 http://localhost:8084/
|
||||
curl -fsSL --max-time 10 http://localhost:8084/
|
||||
echo "<br><br><br>"
|
||||
fi
|
||||
|
||||
# Displaying web server status
|
||||
echo "<h2>$WEB_SYSTEM STATUS</h2>"| tr '[:lower:]' '[:upper:]'
|
||||
if [ "$WEB_SYSTEM" != 'nginx' ]; then
|
||||
curl -fsSL --max-time 3 http://localhost:8081/server-status/ |\
|
||||
curl -fsSL --max-time 10 http://localhost:8081/server-status/ |\
|
||||
egrep -v "html|DOCTYPE|h1>|title|head"
|
||||
else
|
||||
curl -fsSL --max-time 3 http://localhost:8084/
|
||||
curl -fsSL --max-time 10 http://localhost:8084/
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue