diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-10-01 21:22:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-01 21:22:53 +0200 |
commit | e1433895793300af74c1c09525e248bce045e67a (patch) | |
tree | d66fcdb0705b3dce32e2738a2e43d95334fd414d | |
parent | e5ec38fb06f45689e1bacf8a3ce9773c2e54473e (diff) | |
parent | b5230deaf68207b3ba0bbdf9c9152bbf423fa227 (diff) | |
download | vyos-1x-e1433895793300af74c1c09525e248bce045e67a.tar.gz vyos-1x-e1433895793300af74c1c09525e248bce045e67a.zip |
Merge pull request #560 from kroy-the-rabbit/patch-6
T2949: Fix restart methodology for pdns on static host mapping
-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 47cf232e9..bce966323 100755 --- a/src/conf_mode/host_name.py +++ b/src/conf_mode/host_name.py @@ -170,7 +170,7 @@ def apply(config): # restart pdns if it is used if os.system("/usr/bin/rec_control ping >/dev/null 2>&1") == 0: - os.system("/etc/init.d/pdns-recursor restart >/dev/null") + os.system("/bin/systemctl restart pdns-recursor.service >/dev/null") return None |