Update services.inc
This commit is contained in:
@@ -4,10 +4,7 @@ SINGLE_SERVER_SERVICE_CHECK(){
|
|||||||
if [ -f ${NM_TMPFOLDER}/.singleserver.${1^^}.check ]; then
|
if [ -f ${NM_TMPFOLDER}/.singleserver.${1^^}.check ]; then
|
||||||
([ "${2^^}" == "START" ] || [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/.singleserver.${1^^}.check)) -ge 1200 ]) && rm -f ${NM_TMPFOLDER}/.singleserver.${1^^}.check
|
([ "${2^^}" == "START" ] || [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/.singleserver.${1^^}.check)) -ge 1200 ]) && rm -f ${NM_TMPFOLDER}/.singleserver.${1^^}.check
|
||||||
fi
|
fi
|
||||||
echo 1
|
|
||||||
if [ ! -f ${NM_TMPFOLDER}/.singleserver.${1^^}.check ]; then
|
if [ ! -f ${NM_TMPFOLDER}/.singleserver.${1^^}.check ]; then
|
||||||
echo 2
|
|
||||||
touch ${NM_TMPFOLDER}/.singleserver.${1^^}.test
|
|
||||||
touch ${NM_TMPFOLDER}/.singleserver.${1^^}.check
|
touch ${NM_TMPFOLDER}/.singleserver.${1^^}.check
|
||||||
|
|
||||||
servicestocheck=${1^^}_SINGLESRVR_SERVICES[@]
|
servicestocheck=${1^^}_SINGLESRVR_SERVICES[@]
|
||||||
@@ -21,6 +18,7 @@ SINGLE_SERVER_SERVICE_CHECK(){
|
|||||||
|
|
||||||
if [ ! -f ${NM_TMPFOLDER}/.skip ] && ([[ "$(declare -p ${1^^}_SINGLESRVR_SERVICES)" =~ "declare -a" ]] || [[ "$(declare -p ${1^^}_SINGLESRVR_DOCKERS)" =~ "declare -a" ]] || [ "${1^^}" == "LPD" ] || [ "${1^^}" == "DNS" ] || [ "${1^^}" == "LDNS" ]); then
|
if [ ! -f ${NM_TMPFOLDER}/.skip ] && ([[ "$(declare -p ${1^^}_SINGLESRVR_SERVICES)" =~ "declare -a" ]] || [[ "$(declare -p ${1^^}_SINGLESRVR_DOCKERS)" =~ "declare -a" ]] || [ "${1^^}" == "LPD" ] || [ "${1^^}" == "DNS" ] || [ "${1^^}" == "LDNS" ]); then
|
||||||
if [ "${1^^}" == "LPD" ] || [ "${1^^}" == "DNS" ] || [ "${1^^}" == "LDNS" ]; then
|
if [ "${1^^}" == "LPD" ] || [ "${1^^}" == "DNS" ] || [ "${1^^}" == "LDNS" ]; then
|
||||||
|
echo yes
|
||||||
dnstest=$(dig +short +tries=3 +time=3 www.google.com @127.0.0.1)
|
dnstest=$(dig +short +tries=3 +time=3 www.google.com @127.0.0.1)
|
||||||
if [ "${dnstest}" == "" ] || [[ "${dnstest}" == *";;"* ]]; then
|
if [ "${dnstest}" == "" ] || [[ "${dnstest}" == *";;"* ]]; then
|
||||||
SKIP_SERVER_CHECKS on >/dev/null 2>&1
|
SKIP_SERVER_CHECKS on >/dev/null 2>&1
|
||||||
|
|||||||
Reference in New Issue
Block a user