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

@ -46,7 +46,7 @@ old_ifs="$IFS"
IFS=$'\n'
if [ -z $host ]; then
hosts=$(cat $VESTA/conf/dns-cluster.conf)
hosts=$(cat $VESTA/conf/dns-cluster.conf | grep "SUSPENDED=='no'")
rm -f $VESTA/data/queue/dns-cluster.pipe
touch $VESTA/data/queue/dns-cluster.pipe
chmod 660 $VESTA/data/queue/dns-cluster.pipe