diff options
author | Thomas Jepp <tom@tomjepp.co.uk> | 2015-11-19 18:39:55 +0000 |
---|---|---|
committer | Thomas Jepp <tom@tomjepp.co.uk> | 2015-11-19 18:39:55 +0000 |
commit | 39a5792649d0d26a6afc062353b36d6de88e84d3 (patch) | |
tree | e5b0a54bcafb85afdede3d4b2ed2020f2e83bc6a /templates/restart | |
parent | 1d54d4e700b4e1736d1e2798d96bfb9dd1b1f31d (diff) | |
download | vyatta-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.def | 9 | ||||
-rw-r--r-- | templates/restart/dns/node.def | 1 |
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 |