Color_Change() { echo -ne "\33[1m\33[3${1}m\33[" } Color_Recover() { echo -ne "\33[1m\33[37m\33[" } Start_Wko () { printf "\n\n\t\t\t WKOPCTLSRV HAPPEN ERROR\n" printf "\t\t\t____________________\n" printf "\t\t\t" for ((i = 0; i < 2; i++)) do for ((j = 0; j < 5; j++)) do usleep 500000 printf "■" tput bel done done #run ret 1 } Start_Wkc () { printf "\n\n\t\t\t WKCOMMSRV HAPPEN ERROR\n" printf "\t\t\t____________________\n" printf "\t\t\t" for ((i = 0; i < 2; i++)) do for ((j = 0; j < 5; j++)) do usleep 500000 printf "■" tput bel done done #run ret 2 }
Check_Pro_Flow() { if [[ ${1} == 0 ]] then printf "\t\t\t 流程服务器没有启动\n" fi } Check_Pro_Conf() { if [[ ${1} == 0 ]] then printf "\t\t\t 配置服务器没有启动\n" fi } Check_Pro_Opcl() { if [[ ${1} == 0 ]] then printf "\t\t\t 自服务没有启动\n" fi } Check_Pro_Comm() { if [[ ${1} == 0 ]] then printf "\t\t\t 通讯服务器没有启动\n" fi } Check_Pro_Sms() { if [[ ${1} == 0 ]] then printf "\t\t\t 短信服务器没有启动\n" fi } Check_Pro_Top() { if [[ ${1} == 0 ]] then printf "\t\t\t 顶级服务器没有启动\n" fi } ####################### #main ####################### while true do