summaryrefslogtreecommitdiff
path: root/templates/restart
diff options
context:
space:
mode:
authorThomas Jepp <tom@tomjepp.co.uk>2015-11-19 18:39:55 +0000
committerThomas Jepp <tom@tomjepp.co.uk>2015-11-19 18:39:55 +0000
commit39a5792649d0d26a6afc062353b36d6de88e84d3 (patch)
treee5b0a54bcafb85afdede3d4b2ed2020f2e83bc6a /templates/restart
parent1d54d4e700b4e1736d1e2798d96bfb9dd1b1f31d (diff)
downloadvyatta-op-39a5792649d0d26a6afc062353b36d6de88e84d3.tar.gz
vyatta-op-39a5792649d0d26a6afc062353b36d6de88e84d3.zip
Implemented a DNS forwarder restart command - "restart dns forwarding"
Diffstat (limited to 'templates/restart')
-rw-r--r--templates/restart/dns/forwarding/node.def9
-rw-r--r--templates/restart/dns/node.def1
2 files changed, 10 insertions, 0 deletions
diff --git a/templates/restart/dns/forwarding/node.def b/templates/restart/dns/forwarding/node.def
new file mode 100644
index 0000000..18f530e
--- /dev/null
+++ b/templates/restart/dns/forwarding/node.def
@@ -0,0 +1,9 @@
+help: Restart DNS forwarder
+
+run:
+ echo "Restarting DNS forwarder..."
+ sudo /etc/init.d/dnsmasq restart
+ if [[ $? -eq 0 ]]; then
+ echo "Success!"
+ fi
+
diff --git a/templates/restart/dns/node.def b/templates/restart/dns/node.def
new file mode 100644
index 0000000..3118853
--- /dev/null
+++ b/templates/restart/dns/node.def
@@ -0,0 +1 @@
+help: Restart DNS services