summaryrefslogtreecommitdiff
path: root/op-mode-definitions/dns-forwarding.xml.in
diff options
context:
space:
mode:
Diffstat (limited to 'op-mode-definitions/dns-forwarding.xml.in')
-rw-r--r--op-mode-definitions/dns-forwarding.xml.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/op-mode-definitions/dns-forwarding.xml.in b/op-mode-definitions/dns-forwarding.xml.in
index 29bfc61cf..fac3fc345 100644
--- a/op-mode-definitions/dns-forwarding.xml.in
+++ b/op-mode-definitions/dns-forwarding.xml.in
@@ -73,7 +73,7 @@
<properties>
<help>Restart DNS Forwarding service</help>
</properties>
- <command>if cli-shell-api existsActive service dns forwarding; then sudo systemctl restart pdns-recursor.service; else echo "DNS forwarding not configured"; fi</command>
+ <command>sudo ${vyos_op_scripts_dir}/restart.py restart_service --name dns_forwarding</command>
</leafNode>
</children>
</node>