summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-02-22 10:14:17 -0800
committerhagbard <vyosdev@derith.de>2019-02-22 10:14:17 -0800
commit57e4b8475188641e5f1698a5fd9db15ba8b7f15f (patch)
tree7a0ec93204b7529f901bff396de5b50e6546bc55
parent5ac03c871aa044eb483364de0e86e08503012f4f (diff)
downloadvyos-1x-57e4b8475188641e5f1698a5fd9db15ba8b7f15f.tar.gz
vyos-1x-57e4b8475188641e5f1698a5fd9db15ba8b7f15f.zip
pdns_recursor check improved, spits out a message for /var/run if it's not running.
-rwxr-xr-xsrc/conf_mode/host_name.py2
1 files changed, 1 insertions, 1 deletions
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