summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShafer Stockton <shafer@wiggentree.stocktons.org>2018-06-13 20:13:08 -0700
committerShafer Stockton <shafer@wiggentree.stocktons.org>2018-06-13 20:13:08 -0700
commite7ccdd3f38d11616916a17fbdb90243d40df50e1 (patch)
tree02390b69993a76d8dbd0becd873e2cffff955d03
parente26ce5c3908a5db1643d6fc455f473bef0113b56 (diff)
downloadvyatta-cfg-system-e7ccdd3f38d11616916a17fbdb90243d40df50e1.tar.gz
vyatta-cfg-system-e7ccdd3f38d11616916a17fbdb90243d40df50e1.zip
dnsmasq is gone, restart the correct process
also prevents additions from failing at commit
-rw-r--r--templates/system/static-host-mapping/host-name/node.def4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/system/static-host-mapping/host-name/node.def b/templates/system/static-host-mapping/host-name/node.def
index 09bc9dbe..9d815965 100644
--- a/templates/system/static-host-mapping/host-name/node.def
+++ b/templates/system/static-host-mapping/host-name/node.def
@@ -12,10 +12,10 @@ end: sudo sh -c "
touch /etc/hosts
sed -i '/ $VAR(@) .*#vyatta entry/d' /etc/hosts
if [ -z \"$VAR(./inet/@)\" ]; then
- if cli-shell-api existsActive service dns forwarding; then /etc/init.d/dnsmasq restart >&/dev/null; fi
+ if cli-shell-api existsActive service dns forwarding; then /etc/init.d/pdns-recursor restart >&/dev/null; fi
exit 0
fi
declare -a aliases=( $VAR(alias/@@) )
echo -e \"$VAR(inet/@)\\t $VAR(@) \${aliases[*]} \\t #vyatta entry\" >> /etc/hosts
- if cli-shell-api existsActive service dns forwarding; then /etc/init.d/dnsmasq restart >&/dev/null; fi"
+ if cli-shell-api existsActive service dns forwarding; then /etc/init.d/pdns-recursor restart >&/dev/null; fi"