summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2015-11-20 00:03:17 +0500
committerDaniil Baturin <daniil@baturin.org>2015-11-20 00:03:17 +0500
commit06d24d7b791acf4ad906602d9769a4d2495b0b70 (patch)
treee5b0a54bcafb85afdede3d4b2ed2020f2e83bc6a
parent1d54d4e700b4e1736d1e2798d96bfb9dd1b1f31d (diff)
parent39a5792649d0d26a6afc062353b36d6de88e84d3 (diff)
downloadvyatta-op-06d24d7b791acf4ad906602d9769a4d2495b0b70.tar.gz
vyatta-op-06d24d7b791acf4ad906602d9769a4d2495b0b70.zip
Merge pull request #4 from tomjepp/lithium
Bug #619 - Implemented a DNS forwarder restart command - "restart dns forwarding"
-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