summaryrefslogtreecommitdiff
path: root/op-mode-definitions/dns-dynamic.xml.in
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-07-17 13:58:39 +0200
committerGitHub <noreply@github.com>2024-07-17 13:58:39 +0200
commit1564005b69137830ef8168dcce2e0701f85bb92e (patch)
tree71c451dbc5f7bed3d8c616691254660b97938fd5 /op-mode-definitions/dns-dynamic.xml.in
parente9232c7a751ffec34f18e1734cb18ac01da35cb7 (diff)
parentc74ae852152b0c3c3f00a1847d081d28f500e178 (diff)
downloadvyos-1x-1564005b69137830ef8168dcce2e0701f85bb92e.tar.gz
vyos-1x-1564005b69137830ef8168dcce2e0701f85bb92e.zip
Merge pull request #3817 from c-po/op-mode-restart
op-mode: T6577: create generic service restart helper to work with the API
Diffstat (limited to 'op-mode-definitions/dns-dynamic.xml.in')
-rw-r--r--op-mode-definitions/dns-dynamic.xml.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/op-mode-definitions/dns-dynamic.xml.in b/op-mode-definitions/dns-dynamic.xml.in
index 45d58e2e8..ef0f03988 100644
--- a/op-mode-definitions/dns-dynamic.xml.in
+++ b/op-mode-definitions/dns-dynamic.xml.in
@@ -97,7 +97,7 @@
<properties>
<help>Restart Dynamic DNS service</help>
</properties>
- <command>if cli-shell-api existsActive service dns dynamic; then sudo systemctl restart ddclient.service; else echo "Dynamic DNS not configured"; fi</command>
+ <command>sudo ${vyos_op_scripts_dir}/restart.py restart_service --name dns_dynamic</command>
</node>
</children>
</node>