#!/bin/bash # info: list web status # options: [FORMAT] # # The function lists web server status #----------------------------------------------------------# # Variable&Function # #----------------------------------------------------------# # Argument definition #format=${1-shell} # Includes #source $VESTA/func/main.sh source $VESTA/conf/vesta.conf #----------------------------------------------------------# # Action # #----------------------------------------------------------# # Checking web system if [ -z "$WEB_SYSTEM" ]; then exit fi # Displaying proxy status if [ "$PROXY_SYSTEM" = 'nginx' ]; then echo "