check_ws_port () { if [ $1 == 0 ] then printf '\t\tWS is not running.\n' else
/bin/ps -ef |grep run-ws|grep -v "grep"| awk '{print "\t\t"$2,"\t\tRUN-WS","\t\t8100","\t\t"$1}' fi } check_wap_port () { if [ $1 == 0 ] then printf '\t\tWAP is not running.\n' else /bin/ps -ef |grep run-wap|grep -v "grep"|awk '{print "\t\t"$2,"\t\tRUN-WAP","\t9080","\t\t"$1}' fi }
check_opertor_port () { if [ $1 == 0 ] then printf '\t\tOPERTOR is not running.\n' else /bin/ps -ef |grep run-opertor|grep -v "grep"|awk '{print "\t\t"$2,"\t\tRUN-OPERTOR","\t9090","\t\t"$1}' fi