Browse Source

full path to named-checkconf command

Serghey Rodin 10 years ago
parent
commit
930290f518
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bin/v-restart-dns

+ 1 - 1
bin/v-restart-dns

@@ -25,7 +25,7 @@ send_email_report() {
     email=$(echo "$email" | cut -f 2 -d "'")
     email=$(echo "$email" | cut -f 2 -d "'")
     tmpfile=$(mktemp)
     tmpfile=$(mktemp)
     subj="$(hostname): $DNS_SYSTEM restart failed"
     subj="$(hostname): $DNS_SYSTEM restart failed"
-    named-checkconf $dns_conf >> $tmpfile 2>&1
+    /usr/sbin/named-checkconf $dns_conf >> $tmpfile 2>&1
     service $DNS_SYSTEM restart >> $tmpfile 2>&1
     service $DNS_SYSTEM restart >> $tmpfile 2>&1
     cat $tmpfile | $send_mail -s "$subj" $email
     cat $tmpfile | $send_mail -s "$subj" $email
     rm -f $tmpfile
     rm -f $tmpfile