1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-05 15:57:23 +01:00

in status checks, clear bind9 cache using rndc rather than restarting bind9

This commit is contained in:
Joshua Tauberer
2014-12-26 13:22:14 +00:00
parent 2b76fd299e
commit 399f9d9bdf
2 changed files with 9 additions and 2 deletions

View File

@@ -18,8 +18,8 @@ from mailconfig import get_mail_domains, get_mail_aliases
from utils import shell, sort_domains, load_env_vars_from_file
def run_checks(env, output):
# clear the DNS cache so our DNS checks are most up to date
shell('check_call', ["/usr/sbin/service", "bind9", "restart"])
# clear bind9's DNS cache so our DNS checks are up to date
shell('check_call', ["/usr/sbin/rndc", "flush"])
# perform checks
env["out"] = output