From 57e4b8475188641e5f1698a5fd9db15ba8b7f15f Mon Sep 17 00:00:00 2001 From: hagbard Date: Fri, 22 Feb 2019 10:14:17 -0800 Subject: pdns_recursor check improved, spits out a message for /var/run if it's not running. --- src/conf_mode/host_name.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf_mode/host_name.py b/src/conf_mode/host_name.py index c0341a77c..6886324f2 100755 --- a/src/conf_mode/host_name.py +++ b/src/conf_mode/host_name.py @@ -227,7 +227,7 @@ def apply(config): os.system("systemctl restart snmpd.service") # restart pdns if it is used - if os.system("/usr/bin/rec_control ping >/dev/null") == 0: + if os.system("/usr/bin/rec_control ping >/dev/null 2>&1") == 0: os.system("/etc/init.d/pdns-recursor restart >/dev/null") return None -- cgit v1.2.3