diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-05-29 19:50:23 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-05-29 19:51:25 +0200 |
commit | 968ea6284fe177aa0c3ace747e2027d151e2474e (patch) | |
tree | b0d78cfc28e53385ac9a79c5fa4b5140a592b58d /src/op_mode/dns_dynamic_restart.sh | |
parent | 1046011ec0d6a47c20a54adc1cecd3a1dd57300f (diff) | |
download | vyos-1x-968ea6284fe177aa0c3ace747e2027d151e2474e.tar.gz vyos-1x-968ea6284fe177aa0c3ace747e2027d151e2474e.zip |
dynamic-dns: op-mode: add restart command
vyos@vyos:~$ restart dns dynamic
Dynamic DNS update service is not configured
Diffstat (limited to 'src/op_mode/dns_dynamic_restart.sh')
-rwxr-xr-x | src/op_mode/dns_dynamic_restart.sh | 8 |
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 |