summaryrefslogtreecommitdiff
path: root/src/op_mode/dns_forwarding_restart.sh
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-07-05 17:45:29 +0200
committerDaniil Baturin <daniil@baturin.org>2018-07-05 17:45:29 +0200
commit9efa2ed17852a9d4e6f93609138436b5e4b552f2 (patch)
tree4bfeba7e27ef0deb0e7f2e817eec825dc3d84c07 /src/op_mode/dns_forwarding_restart.sh
parent7488bbad3118596c1eaef9e0acb9819b039ea6bf (diff)
downloadvyos-1x-9efa2ed17852a9d4e6f93609138436b5e4b552f2.tar.gz
vyos-1x-9efa2ed17852a9d4e6f93609138436b5e4b552f2.zip
T734: use existsEffective instead of exists in DNS forwarding restart script to make it work from op mode.
Diffstat (limited to 'src/op_mode/dns_forwarding_restart.sh')
-rwxr-xr-xsrc/op_mode/dns_forwarding_restart.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/dns_forwarding_restart.sh b/src/op_mode/dns_forwarding_restart.sh
index 12106fcc1..8e556f2f0 100755
--- a/src/op_mode/dns_forwarding_restart.sh
+++ b/src/op_mode/dns_forwarding_restart.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-if cli-shell-api exists service dns forwarding; then
+if cli-shell-api existsEffective service dns forwarding; then
echo "Restarting the DNS forwarding service"
systemctl restart pdns-recursor
else