diff options
author | kroy-the-rabbit <kroy@kroy.io> | 2020-10-01 13:27:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-01 13:27:09 -0500 |
commit | b5230deaf68207b3ba0bbdf9c9152bbf423fa227 (patch) | |
tree | d66fcdb0705b3dce32e2738a2e43d95334fd414d /src/conf_mode | |
parent | e5ec38fb06f45689e1bacf8a3ce9773c2e54473e (diff) | |
download | vyos-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/conf_mode')
-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 |