fix for iptables restart on Debian/Ubuntu

This commit is contained in:
Serghey Rodin 2015-07-01 02:22:43 +03:00
commit 8be83a9e73
5 changed files with 23 additions and 11 deletions

View file

@ -117,9 +117,9 @@ fi
service=$DNS_SYSTEM
if [ ! -z "$service" ] && [ "$service" != 'remote' ]; then
if [ "$service" == 'bind' ] || [ "$service" == 'bind9' ]; then
service='named'
proc_name='named'
fi
get_srv_state $service
get_srv_state $service $proc_name
str="$str\nNAME='$service' SYSTEM='dns server' STATE='$state' CPU='$cpu'"
str="$str MEM='$mem' RTIME='$rtime'"
fi