summaryrefslogtreecommitdiff
path: root/src/conf_mode/dns_forwarding.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-13 18:38:26 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-13 18:38:26 +0200
commitc89eb87446d40b753becd5441ec98e808c9a25b4 (patch)
treed15f717bed6caba4aab9e3015e0dce3f3c86df1c /src/conf_mode/dns_forwarding.py
parent6185439442e8982febf6b8037a89fc2d7e6fa677 (diff)
downloadvyos-1x-c89eb87446d40b753becd5441ec98e808c9a25b4.tar.gz
vyos-1x-c89eb87446d40b753becd5441ec98e808c9a25b4.zip
dns-forwarding: T2185: migrate from SysVinit to systemd
Diffstat (limited to 'src/conf_mode/dns_forwarding.py')
-rwxr-xr-xsrc/conf_mode/dns_forwarding.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/dns_forwarding.py b/src/conf_mode/dns_forwarding.py
index a7b12fa01..fef1550ff 100755
--- a/src/conf_mode/dns_forwarding.py
+++ b/src/conf_mode/dns_forwarding.py
@@ -158,11 +158,11 @@ def generate(dns):
def apply(dns):
if dns is None:
# DNS forwarding is removed in the commit
- call("systemctl stop pdns-recursor")
+ call("systemctl stop pdns-recursor.service")
if os.path.isfile(config_file):
os.unlink(config_file)
else:
- call("systemctl restart pdns-recursor")
+ call("systemctl restart pdns-recursor.service")
if __name__ == '__main__':
args = parser.parse_args()