summaryrefslogtreecommitdiff
path: root/src/op_mode/dns_dynamic_restart.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/op_mode/dns_dynamic_restart.sh')
-rwxr-xr-xsrc/op_mode/dns_dynamic_restart.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/op_mode/dns_dynamic_restart.sh b/src/op_mode/dns_dynamic_restart.sh
new file mode 100755
index 000000000..1b67ff4f1
--- /dev/null
+++ b/src/op_mode/dns_dynamic_restart.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if cli-shell-api existsEffective service dns dynamic; then
+ echo "Restarting dynamic DNS service"
+ systemctl restart ddclient.service
+else
+ echo "Dynamic DNS update service is not configured"
+fi