summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-10-01 21:22:53 +0200
committerGitHub <noreply@github.com>2020-10-01 21:22:53 +0200
commite1433895793300af74c1c09525e248bce045e67a (patch)
treed66fcdb0705b3dce32e2738a2e43d95334fd414d
parente5ec38fb06f45689e1bacf8a3ce9773c2e54473e (diff)
parentb5230deaf68207b3ba0bbdf9c9152bbf423fa227 (diff)
downloadvyos-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-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 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