suspend remote dns if connection failed

This commit is contained in:
Serghey Rodin 2013-10-08 00:21:56 +03:00
commit f70ba768a3
9 changed files with 85 additions and 74 deletions

View file

@ -50,8 +50,11 @@ fi
old_ifs="$IFS"
IFS=$'\n'
# Check remote dns nodes
remote_dns_health_check
# Starting cluster loop
for cluster_str in $(cat $VESTA/conf/dns-cluster.conf); do
for cluster_str in $(grep "SUSPENDED='no'" $VESTA/conf/dns-cluster.conf); do
# Get host values
eval $cluster_str