diff options
author | hagbard <vyosdev@derith.de> | 2019-02-22 10:14:17 -0800 |
---|---|---|
committer | hagbard <vyosdev@derith.de> | 2019-02-22 10:14:17 -0800 |
commit | 57e4b8475188641e5f1698a5fd9db15ba8b7f15f (patch) | |
tree | 7a0ec93204b7529f901bff396de5b50e6546bc55 /src/conf_mode/host_name.py | |
parent | 5ac03c871aa044eb483364de0e86e08503012f4f (diff) | |
download | vyos-1x-57e4b8475188641e5f1698a5fd9db15ba8b7f15f.tar.gz vyos-1x-57e4b8475188641e5f1698a5fd9db15ba8b7f15f.zip |
pdns_recursor check improved, spits out a message for /var/run if it's not running.
Diffstat (limited to 'src/conf_mode/host_name.py')
-rwxr-xr-x | src/conf_mode/host_name.py | 2 |
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 |