summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkroy-the-rabbit <kroy@kroy.io>2020-10-01 13:27:09 -0500
committerGitHub <noreply@github.com>2020-10-01 13:27:09 -0500
commitb5230deaf68207b3ba0bbdf9c9152bbf423fa227 (patch)
treed66fcdb0705b3dce32e2738a2e43d95334fd414d /src
parente5ec38fb06f45689e1bacf8a3ce9773c2e54473e (diff)
downloadvyos-1x-b5230deaf68207b3ba0bbdf9c9152bbf423fa227.tar.gz
vyos-1x-b5230deaf68207b3ba0bbdf9c9152bbf423fa227.zip
T2949: Fix restart methodology for pdns
pdns update removed the /etc/init.d script
Diffstat (limited to 'src')
-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